Home
last modified time | relevance | path

Searched refs:RAND_bytes_ex (Results 1 – 22 of 22) sorted by relevance

/crypto/rand/
A Drand_uniform.c41 if (RAND_bytes_ex(ctx, (unsigned char *)&rand, sizeof(rand), 0) <= 0) { in ossl_rand_uniform_uint32()
77 if (RAND_bytes_ex(ctx, (unsigned char *)&rand, sizeof(rand), 0) <= 0) { in ossl_rand_uniform_uint32()
A Drand_lib.c460 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, in RAND_bytes_ex() function
501 return RAND_bytes_ex(NULL, buf, (size_t)num, 0); in RAND_bytes()
/crypto/asn1/
A Dp5_pbev2.c86 else if (RAND_bytes_ex(libctx, iv, ivlen, 0) <= 0)
216 } else if (RAND_bytes_ex(libctx, osalt->data, saltlen, 0) <= 0) { in PKCS5_pbkdf2_set_ex()
A Dp5_pbe.c58 else if (RAND_bytes_ex(ctx, sstr, saltlen, 0) <= 0)
A Dasn_mime.c282 if (RAND_bytes_ex(libctx, (unsigned char *)bound, 32, 0) <= 0) in SMIME_write_ASN1_ex()
/crypto/bn/
A Dbn_rand.c48 b = flag == NORMAL ? RAND_bytes_ex(libctx, buf, bytes, strength) in bnrand()
61 if (RAND_bytes_ex(libctx, &c, 1, strength) <= 0) in bnrand()
/crypto/rsa/
A Drsa_pk1.c148 if (RAND_bytes_ex(libctx, p, j, 0) <= 0) in ossl_rsa_padding_add_PKCS1_type_2_ex()
153 if (RAND_bytes_ex(libctx, p, 1, 0) <= 0) in ossl_rsa_padding_add_PKCS1_type_2_ex()
A Drsa_oaep.c122 if (RAND_bytes_ex(libctx, seed, mdlen, 0) <= 0) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
A Drsa_pss.c242 if (RAND_bytes_ex(rsa->libctx, salt, sLen, 0) <= 0) in ossl_rsa_padding_add_PKCS1_PSS_mgf1()
/crypto/cms/
A Dcms_pwri.c107 if (RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), iv, ivlen, 0) <= 0) in CMS_add0_recipient_password()
293 && RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), out + 4 + inlen, in kek_wrap_key()
A Dcms_enc.c97 if (RAND_bytes_ex(libctx, iv, ivlen, 0) <= 0) in ossl_cms_EncryptedContent_init_bio()
A Dcms_ess.c135 if (RAND_bytes_ex(libctx, rr->signedContentIdentifier->data, 32, in CMS_ReceiptRequest_create0_ex()
/crypto/crmf/
A Dcrmf_pbm.c44 if (RAND_bytes_ex(libctx, salt, slen, 0) <= 0) { in OSSL_CRMF_pbmp_new()
/crypto/pkcs12/
A Dp12_mutl.c414 if (RAND_bytes_ex(p12->authsafes->ctx.libctx, p12->mac->salt->data, in pkcs12_setup_mac()
478 if (RAND_bytes_ex(NULL, known_salt, saltlen, 0) <= 0) { in PKCS12_set_pbmac1_pbkdf2()
/crypto/cmp/
A Dcmp_hdr.c121 if (bytes == NULL || RAND_bytes_ex(ctx->libctx, bytes, len, 0) <= 0) in set_random()
/crypto/srp/
A Dsrp_vfy.c657 if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN, 0) <= 0) in SRP_create_verifier_ex()
739 if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN, 0) <= 0) in SRP_create_verifier_BN_ex()
/crypto/ffc/
A Dffc_params_generate.c335 && RAND_bytes_ex(libctx, seed, seedlen, 0) <= 0) in generate_q_fips186_4()
405 if (generate_seed && RAND_bytes_ex(libctx, seed, qsize, 0) <= 0) in generate_q_fips186_2()
/crypto/slh_dsa/
A Dslh_dsa_key.c365 || RAND_bytes_ex(lib_ctx, pub, pk_seed_len, 0) <= 0) in ossl_slh_dsa_generate_key()
/crypto/ml_kem/
A Dml_kem.c1998 if (RAND_bytes_ex(key->libctx, r, ML_KEM_RANDOM_BYTES, in ossl_ml_kem_encap_rand()
2025 (void)RAND_bytes_ex(key->libctx, shared_secret, in ossl_ml_kem_decap()
/crypto/pem/
A Dpvkfmt.c1074 if (RAND_bytes_ex(libctx, p, PVK_SALTLEN, 0) <= 0) in i2b_PVK()
/crypto/pkcs7/
A Dpk7_doit.c334 if (RAND_bytes_ex(libctx, iv, ivlen, 0) <= 0) in PKCS7_dataInit()
/crypto/hpke/
A Dhpke.c1420 if (RAND_bytes_ex(libctx, ct, ctlen, 0) <= 0) { in OSSL_HPKE_get_grease_value()

Completed in 56 milliseconds