Home
last modified time | relevance | path

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

12

/openssl-master/doc/man3/
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,
38 RAND_bytes_ex() and RAND_priv_bytes_ex() are the same as RAND_bytes() and
98 The RAND_bytes_ex() and RAND_priv_bytes_ex() functions were added in OpenSSL 3.0
/openssl-master/test/
A Dprovfetchtest.c216 if (!RAND_bytes_ex(libctx, buf, sizeof(buf), 0)) in dummy_provider_init()
267 || !TEST_int_ge(RAND_bytes_ex(libctx, buf, sizeof(buf), 0), 1)) in fetch_test()
A Dcmp_msg_test.c152 if (!TEST_int_eq(1, RAND_bytes_ex(libctx, secret, sizeof(secret), 0)) in test_cmp_create_ir_protection_set()
569 || !TEST_int_eq(1, RAND_bytes_ex(libctx, ref, sizeof(ref), 0))) { in OPT_TEST_DECLARE_USAGE()
A Dtls-provider.c643 if (RAND_bytes_ex(gctx->libctx, key->privkey, XOR_KEY_SIZE, 0) <= 0) { in xor_gen()
816 if (!RAND_bytes_ex(libctx, (unsigned char *)&group_id, sizeof(group_id), 0)) in randomize_tls_group_id()
A Dcmp_client_test.c371 || !TEST_int_eq(1, RAND_bytes_ex(libctx, ref, sizeof(ref), 0))) { in OPT_TEST_DECLARE_USAGE()
/openssl-master/crypto/asn1/
A Dp5_pbev2.c73 else if (RAND_bytes_ex(libctx, iv, ivlen, 0) <= 0)
191 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)
/openssl-master/crypto/rsa/
A Drsa_pk1.c144 if (RAND_bytes_ex(libctx, p, j, 0) <= 0) in ossl_rsa_padding_add_PKCS1_type_2_ex()
149 if (RAND_bytes_ex(libctx, p, 1, 0) <= 0) in ossl_rsa_padding_add_PKCS1_type_2_ex()
A Drsa_pss.c208 if (RAND_bytes_ex(rsa->libctx, salt, sLen, 0) <= 0) in RSA_padding_add_PKCS1_PSS_mgf1()
A Drsa_oaep.c110 if (RAND_bytes_ex(libctx, seed, mdlen, 0) <= 0) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
/openssl-master/include/openssl/
A Drand.h75 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
/openssl-master/crypto/bn/
A Dbn_rand.c50 b = flag == NORMAL ? RAND_bytes_ex(libctx, buf, bytes, strength) in bnrand()
63 if (RAND_bytes_ex(libctx, &c, 1, strength) <= 0) in bnrand()
/openssl-master/crypto/cms/
A Dcms_pwri.c101 if (RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), iv, ivlen, 0) <= 0) in CMS_add0_recipient_password()
270 && RAND_bytes_ex(ossl_cms_ctx_get0_libctx(cms_ctx), out + 4 + inlen, in kek_wrap_key()
A Dcms_enc.c87 if (RAND_bytes_ex(libctx, iv, ivlen, 0) <= 0) in ossl_cms_EncryptedContent_init_bio()
A Dcms_ess.c131 if (RAND_bytes_ex(libctx, rr->signedContentIdentifier->data, 32, in CMS_ReceiptRequest_create0_ex()
/openssl-master/crypto/crmf/
A Dcrmf_pbm.c58 if (RAND_bytes_ex(libctx, salt, slen, 0) <= 0) { in OSSL_CRMF_pbmp_new()
/openssl-master/providers/implementations/ciphers/
A Dcipher_tdes_wrap.c100 if (RAND_bytes_ex(ctx->libctx, ctx->iv, ivlen, 0) <= 0) in des_ede3_wrap()
A Dciphercommon_gcm.c373 if (RAND_bytes_ex(ctx->libctx, ctx->iv + offset, sz, 0) <= 0) in gcm_iv_generate()
487 && RAND_bytes_ex(ctx->libctx, ctx->iv + len, ctx->ivlen - len, 0) <= 0) in gcm_tls_iv_set_fixed()
/openssl-master/ssl/record/
A Dtls_pad.c254 if (!RAND_bytes_ex(libctx, randmac, mac_size, 0)) in ssl3_cbc_copy_mac()
/openssl-master/crypto/rand/
A Drand_lib.c347 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, in RAND_bytes_ex() function
373 return RAND_bytes_ex(NULL, buf, (size_t)num, 0); in RAND_bytes()
/openssl-master/crypto/cmp/
A Dcmp_hdr.c145 if (bytes == NULL || RAND_bytes_ex(ctx->libctx, bytes, len, 0) <= 0) in set_random()
/openssl-master/crypto/pkcs12/
A Dp12_mutl.c262 if (RAND_bytes_ex(p12->authsafes->ctx.libctx, p12->mac->salt->data, in PKCS12_setup_mac()
/openssl-master/crypto/srp/
A Dsrp_vfy.c648 if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN, 0) <= 0) in SRP_create_verifier_ex()
731 if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN, 0) <= 0) in SRP_create_verifier_BN_ex()
/openssl-master/crypto/ffc/
A Dffc_params_generate.c332 && RAND_bytes_ex(libctx, seed, seedlen, 0) < 0) in generate_q_fips186_4()
402 if (generate_seed && RAND_bytes_ex(libctx, seed, qsize, 0) <= 0) in generate_q_fips186_2()
/openssl-master/ssl/statem/
A Dstatem_clnt.c1195 && RAND_bytes_ex(s->ctx->libctx, s->tmp_session_id, in tls_construct_client_hello()
2849 if (RAND_bytes_ex(s->ctx->libctx, pms + 2, pmslen - 2, 0) <= 0) { in tls_construct_cke_rsa()
3055 || RAND_bytes_ex(s->ctx->libctx, pms, pmslen, 0) <= 0) { in tls_construct_cke_gost()
3180 if (RAND_bytes_ex(s->ctx->libctx, pms, pmslen, 0) <= 0) { in tls_construct_cke_gost18()

Completed in 50 milliseconds

12