Home
last modified time | relevance | path

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

123

/freebsd/crypto/openssl/crypto/rand/
H 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()
/freebsd/crypto/openssl/doc/man3/
H A DRAND_bytes.pod5 RAND_bytes, RAND_priv_bytes, RAND_bytes_ex, RAND_priv_bytes_ex,
15 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
40 RAND_bytes_ex() and RAND_priv_bytes_ex() are the same as RAND_bytes() and
108 The RAND_bytes_ex() and RAND_priv_bytes_ex() functions were added in OpenSSL 3.0
/freebsd/crypto/openssl/test/
H A Drand_test.c232 || !RAND_bytes_ex(ctx, buf, sizeof(buf), 256) in test_rand_random_provider()
240 || !RAND_bytes_ex(ctx, buf, sizeof(buf), 256) in test_rand_random_provider()
246 || !RAND_bytes_ex(ctx, buf, sizeof(buf), 256) in test_rand_random_provider()
H A Dprovfetchtest.c216 if (RAND_bytes_ex(libctx, buf, sizeof(buf), 0) <= 0) in dummy_provider_init()
274 || !TEST_int_ge(RAND_bytes_ex(libctx, buf, sizeof(buf), 0), 1)) in fetch_test()
H A Dcmp_msg_test.c153 if (!TEST_int_eq(1, RAND_bytes_ex(libctx, secret, sizeof(secret), 0)) in test_cmp_create_ir_protection_set()
568 || !TEST_int_eq(1, RAND_bytes_ex(libctx, ref, sizeof(ref), 0))) { in OPT_TEST_DECLARE_USAGE()
/freebsd/crypto/openssl/ssl/quic/
H A Dquic_types.c22 if (RAND_bytes_ex(libctx, cid->id, len, len * 8) != 1) { in ossl_quic_gen_rand_conn_id()
H A Dquic_port.c177 || !RAND_bytes_ex(port->engine->libctx, token_key, key_len, 0) in port_init()
962 if (!RAND_bytes_ex(port->engine->libctx, ciphertext, iv_len, 0) in encrypt_validation_token()
1446 if (!RAND_bytes_ex(ch->port->engine->libctx, rscid.id, 8, 0)) { in generate_new_token()
/freebsd/crypto/openssl/crypto/asn1/
H 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()
H A Dp5_pbe.c58 else if (RAND_bytes_ex(ctx, sstr, saltlen, 0) <= 0)
/freebsd/crypto/openssl/crypto/bn/
H 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()
/freebsd/crypto/openssl/include/openssl/
H A Drand.h75 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
/freebsd/crypto/openssl/fuzz/
H A Dml-dsa.c324 || !RAND_bytes_ex(NULL, tbs, tbslen, 0)) { in ml_dsa_sign_verify()
401 || !RAND_bytes_ex(NULL, tbs, tbslen, 0)) { in ml_dsa_digest_sign_verify()
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_pwri.c106 if (RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), iv, ivlen, 0) <= 0) in CMS_add0_recipient_password()
292 && RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), out + 4 + inlen, in kek_wrap_key()
H A Dcms_enc.c97 if (RAND_bytes_ex(libctx, iv, ivlen, 0) <= 0) in ossl_cms_EncryptedContent_init_bio()
H A Dcms_ess.c135 if (RAND_bytes_ex(libctx, rr->signedContentIdentifier->data, 32, in CMS_ReceiptRequest_create0_ex()
/freebsd/crypto/openssl/crypto/rsa/
H 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()
H A Drsa_pss.c242 if (RAND_bytes_ex(rsa->libctx, salt, sLen, 0) <= 0) in ossl_rsa_padding_add_PKCS1_PSS_mgf1()
H A Drsa_oaep.c122 if (RAND_bytes_ex(libctx, seed, mdlen, 0) <= 0) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
/freebsd/crypto/openssl/crypto/crmf/
H A Dcrmf_pbm.c56 if (RAND_bytes_ex(libctx, salt, slen, 0) <= 0) { in OSSL_CRMF_pbmp_new()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon_gcm.c407 if (RAND_bytes_ex(ctx->libctx, ctx->iv + offset, sz, 0) <= 0) in gcm_iv_generate()
520 if (RAND_bytes_ex(ctx->libctx, ctx->iv + len, ctx->ivlen - len, 0) <= 0) in gcm_tls_iv_set_fixed()
H A Dcipher_tdes_wrap.c99 if (RAND_bytes_ex(ctx->libctx, ctx->iv, ivlen, 0) <= 0) in des_ede3_wrap()
/freebsd/crypto/openssl/ssl/record/methods/
H A Dtls_pad.c240 if (RAND_bytes_ex(libctx, randmac, mac_size, 0) <= 0) in ssl3_cbc_copy_mac()
/freebsd/crypto/openssl/crypto/pkcs12/
H 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()
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_hdr.c127 if (bytes == NULL || RAND_bytes_ex(ctx->libctx, bytes, len, 0) <= 0) in set_random()
/freebsd/crypto/openssl/crypto/srp/
H A Dsrp_vfy.c657 if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN, 0) <= 0) in SRP_create_verifier_ex()
740 if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN, 0) <= 0) in SRP_create_verifier_BN_ex()

123