Home
last modified time | relevance | path

Searched refs:rng (Results 1 – 7 of 7) sorted by relevance

/openssl/crypto/rand/
H A Dprov_seed.c48 EVP_RAND_CTX *rng = ossl_rand_get0_seed_noncreating(ctx); in ossl_rand_get_user_entropy() local
50 if (rng != NULL && evp_rand_can_seed(rng)) in ossl_rand_get_user_entropy()
51 return evp_rand_get_seed(rng, pout, entropy, min_len, max_len, in ossl_rand_get_user_entropy()
66 EVP_RAND_CTX *rng = ossl_rand_get0_seed_noncreating(ctx); in ossl_rand_cleanup_user_entropy() local
68 if (rng != NULL && evp_rand_can_seed(rng)) in ossl_rand_cleanup_user_entropy()
69 evp_rand_clear_seed(rng, buf, len); in ossl_rand_cleanup_user_entropy()
106 EVP_RAND_CTX *rng = ossl_rand_get0_seed_noncreating(ctx); in ossl_rand_get_user_nonce() local
108 if (rng == NULL) in ossl_rand_get_user_nonce()
114 if (!EVP_RAND_generate(rng, buf, min_len, 0, 0, salt, salt_len)) { in ossl_rand_get_user_nonce()
/openssl/test/testutil/
H A Dfake_random.c174 static int check_rng(EVP_RAND_CTX *rng, const char *name) in check_rng() argument
178 if (!TEST_ptr(rng)) { in check_rng()
182 f = rng->algctx; in check_rng()
184 f->ctx = rng; in check_rng()
214 void fake_rand_set_callback(EVP_RAND_CTX *rng, in fake_rand_set_callback() argument
218 if (rng != NULL) in fake_rand_set_callback()
219 ((FAKE_RAND *)rng->algctx)->cb = cb; in fake_rand_set_callback()
/openssl/providers/fips/
H A Dself_test.c315 EVP_RAND_CTX *rng; in SELF_TEST_post() local
381 rng = ossl_rand_get0_private_noncreating(st->libctx); in SELF_TEST_post()
382 if (rng != NULL) in SELF_TEST_post()
384 || strcmp(EVP_RAND_get0_name(EVP_RAND_CTX_get0_rand(rng)), in SELF_TEST_post()
/openssl/test/
H A Drdcpu_sanitytest.c37 static int sanity_check_bytes(size_t (*rng)(unsigned char *, size_t), in sanity_check_bytes()
50 generated = rng(buf, sizeof(buf)); in sanity_check_bytes()
H A Dbntest.c2353 BIGNUM *rng = NULL, *val = NULL; in test_rand_range_single() local
2359 || !TEST_ptr(rng = BN_new()) in test_rand_range_single()
2361 || !TEST_true(BN_set_word(rng, range))) in test_rand_range_single()
2364 if (!TEST_true(BN_rand_range(val, rng)) in test_rand_range_single()
2385 BN_free(rng); in test_rand_range_single()
/openssl/crypto/rsa/
H A Drsa_sp800_56b_gen.c195 static int rsa_validate_rng_strength(EVP_RAND_CTX *rng, int nbits) in rsa_validate_rng_strength() argument
197 if (rng == NULL) in rsa_validate_rng_strength()
204 if (EVP_RAND_get_strength(rng) < ossl_ifc_ffc_compute_security_bits(nbits)) { in rsa_validate_rng_strength()
/openssl/
H A DINSTALL.md519 For more information, see the section [Notes on random number generation][rng]
522 [rng]: #notes-on-random-number-generation

Completed in 21 milliseconds