/openssl/doc/man3/ |
H A D | RAND_bytes.pod | 5 RAND_bytes, RAND_priv_bytes, RAND_bytes_ex, RAND_priv_bytes_ex, 17 int RAND_priv_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
|
/openssl/crypto/evp/ |
H A D | p_seal.c | 46 if (len < 0 || RAND_priv_bytes_ex(libctx, iv, len, 0) <= 0) in EVP_SealInit()
|
H A D | evp_enc.c | 1758 if (kl <= 0 || RAND_priv_bytes_ex(libctx, key, kl, 0) <= 0) in EVP_CIPHER_CTX_rand_key()
|
/openssl/include/openssl/ |
H A D | rand.h | 68 int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
|
/openssl/crypto/bn/ |
H A D | bn_rand.c | 49 : RAND_priv_bytes_ex(libctx, buf, bytes, strength); in bnrand() 346 if (RAND_priv_bytes_ex(libctx, random_bytes, sizeof(random_bytes), in ossl_bn_gen_dsa_nonce_fixed_top()
|
/openssl/providers/implementations/keymgmt/ |
H A D | ecx_kmgmt.c | 713 if (RAND_priv_bytes_ex(gctx->libctx, privkey, key->keylen, 0) <= 0) in ecx_gen() 1066 if (RAND_priv_bytes_ex(gctx->libctx, privkey, X25519_KEYLEN, 0) <= 0) in MAKE_KEYMGMT_FUNCTIONS() 1123 if (RAND_priv_bytes_ex(gctx->libctx, privkey, X448_KEYLEN, 0) <= 0) in s390x_ecx_keygen448() 1176 if (RAND_priv_bytes_ex(gctx->libctx, privkey, ED25519_KEYLEN, 0) <= 0) in s390x_ecd_keygen25519() 1246 if (RAND_priv_bytes_ex(gctx->libctx, privkey, ED448_KEYLEN, 0) <= 0) in s390x_ecd_keygen448()
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_tdes_common.c | 144 if (kl == 0 || RAND_priv_bytes_ex(ctx->libctx, ptr, kl, 0) <= 0)
|
H A D | cipher_des.c | 124 if (kl == 0 || RAND_priv_bytes_ex(ctx->libctx, ptr, kl, 0) <= 0) in des_generatekey()
|
/openssl/crypto/ec/ |
H A D | ecx_meth.c | 963 if (RAND_priv_bytes_ex(ctx->libctx, privkey, X25519_KEYLEN, 0) <= 0) in s390x_pkey_ecx_keygen25519() 1006 if (RAND_priv_bytes_ex(ctx->libctx, privkey, X448_KEYLEN, 0) <= 0) in s390x_pkey_ecx_keygen448() 1055 if (RAND_priv_bytes_ex(ctx->libctx, privkey, ED25519_KEYLEN, 0) <= 0) in s390x_pkey_ecd_keygen25519() 1121 if (RAND_priv_bytes_ex(ctx->libctx, privkey, ED448_KEYLEN, 0) <= 0) in s390x_pkey_ecd_keygen448()
|
H A D | ecx_backend.c | 203 if (RAND_priv_bytes_ex(libctx, privkey, KEYLENID(id), 0) <= 0) in ossl_ecx_key_op()
|
H A D | ecp_s390x_nistp.c | 186 if (RAND_priv_bytes_ex(eckey->libctx, param + S390X_OFF_RN(len), in ecdsa_s390x_nistp_sign_sig()
|
/openssl/ssl/ |
H A D | tls_srp.c | 215 if (RAND_priv_bytes_ex(SSL_CONNECTION_GET_CTX(s)->libctx, b, sizeof(b), in ssl_srp_server_param_with_username_intern() 452 if (RAND_priv_bytes_ex(SSL_CONNECTION_GET_CTX(s)->libctx, in ssl_srp_calc_a_param_intern()
|
H A D | ssl_lib.c | 4148 || (RAND_priv_bytes_ex(libctx, ret->ext.secure->tick_hmac_key, in SSL_CTX_new_ex() 4150 || (RAND_priv_bytes_ex(libctx, ret->ext.secure->tick_aes_key, in SSL_CTX_new_ex() 4154 if (RAND_priv_bytes_ex(libctx, ret->ext.cookie_hmac_key, in SSL_CTX_new_ex()
|
/openssl/test/ |
H A D | rand_test.c | 224 || !RAND_priv_bytes_ex(ctx, privbuf, sizeof(privbuf), 256) in test_rand_random_provider()
|
/openssl/providers/implementations/signature/ |
H A D | ml_dsa_sig.c | 195 else if (RAND_priv_bytes_ex(ctx->libctx, rnd, sizeof(rand_tmp), 0) <= 0) in ml_dsa_sign()
|
H A D | slh_dsa_sig.c | 216 if (RAND_priv_bytes_ex(ctx->libctx, add_rand, n, 0) <= 0) in slh_dsa_sign()
|
/openssl/crypto/rand/ |
H A D | rand_lib.c | 433 int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, in RAND_priv_bytes_ex() function 469 return RAND_priv_bytes_ex(NULL, buf, (size_t)num, 0); in RAND_priv_bytes()
|
/openssl/crypto/rsa/ |
H A D | rsa_pk1.c | 570 if (RAND_priv_bytes_ex(libctx, rand_premaster_secret, in ossl_rsa_padding_check_PKCS1_type_2_TLS()
|
/openssl/crypto/slh_dsa/ |
H A D | slh_dsa_key.c | 364 if (RAND_priv_bytes_ex(lib_ctx, priv, secret_key_len, 0) <= 0 in ossl_slh_dsa_generate_key()
|
/openssl/ssl/quic/ |
H A D | quic_srtm.c | 116 if (RAND_priv_bytes_ex(libctx, key, sizeof(key), sizeof(key) * 8) != 1) in ossl_quic_srtm_new()
|
/openssl/crypto/ml_dsa/ |
H A D | ml_dsa_key.c | 466 if (RAND_priv_bytes_ex(out->libctx, out->seed, seed_len, 0) <= 0) { in ossl_ml_dsa_generate_key()
|
/openssl/providers/implementations/kem/ |
H A D | ecx_kem.c | 409 if (RAND_priv_bytes_ex(ctx->libctx, tmpbuf, info->Nsk, 0) <= 0) in derivekey()
|
H A D | ec_kem.c | 477 if (RAND_priv_bytes_ex(ctx->libctx, tmpbuf, seedlen, 0) <= 0) in derivekey()
|
/openssl/providers/fips/ |
H A D | fipsprov.c | 135 return RAND_priv_bytes_ex(libctx, buf, n, strength); in fips_random_bytes()
|
/openssl/crypto/ml_kem/ |
H A D | ml_kem.c | 1826 } else if (RAND_priv_bytes_ex(key->libctx, seed, sizeof(seed), in ossl_ml_kem_genkey()
|