Home
last modified time | relevance | path

Searched refs:CTR_DRBG_ENTROPY_LEN (Results 1 – 5 of 5) sorted by relevance

/external/boringssl/src/crypto/fipsmodule/rand/
Dctrdrbg.c31 const uint8_t entropy[CTR_DRBG_ENTROPY_LEN], in CTR_DRBG_init() argument
34 if (personalization_len > CTR_DRBG_ENTROPY_LEN) { in CTR_DRBG_init()
38 uint8_t seed_material[CTR_DRBG_ENTROPY_LEN]; in CTR_DRBG_init()
39 OPENSSL_memcpy(seed_material, entropy, CTR_DRBG_ENTROPY_LEN); in CTR_DRBG_init()
49 static const uint8_t kInitMask[CTR_DRBG_ENTROPY_LEN] = { in CTR_DRBG_init()
67 OPENSSL_STATIC_ASSERT(CTR_DRBG_ENTROPY_LEN % AES_BLOCK_SIZE == 0,
82 if (data_len > CTR_DRBG_ENTROPY_LEN) { in ctr_drbg_update()
86 uint8_t temp[CTR_DRBG_ENTROPY_LEN]; in ctr_drbg_update()
87 for (size_t i = 0; i < CTR_DRBG_ENTROPY_LEN; i += AES_BLOCK_SIZE) { in ctr_drbg_update()
103 const uint8_t entropy[CTR_DRBG_ENTROPY_LEN], in CTR_DRBG_reseed() argument
[all …]
Drand.c169 uint8_t seed[CTR_DRBG_ENTROPY_LEN]) { in rand_get_seed() argument
180 uint8_t entropy[CTR_DRBG_ENTROPY_LEN * FIPS_OVERREAD]; in rand_get_seed()
206 OPENSSL_memcpy(seed, entropy, CTR_DRBG_ENTROPY_LEN); in rand_get_seed()
209 for (size_t j = 0; j < CTR_DRBG_ENTROPY_LEN; j++) { in rand_get_seed()
210 seed[j] ^= entropy[CTR_DRBG_ENTROPY_LEN * i + j]; in rand_get_seed()
218 uint8_t seed[CTR_DRBG_ENTROPY_LEN]) { in rand_get_seed() argument
221 CRYPTO_sysrand(seed, CTR_DRBG_ENTROPY_LEN); in rand_get_seed()
268 uint8_t seed[CTR_DRBG_ENTROPY_LEN]; in RAND_bytes_with_additional_data()
291 uint8_t seed[CTR_DRBG_ENTROPY_LEN]; in RAND_bytes_with_additional_data()
Dctrdrbg_test.cc26 const uint8_t kSeed[CTR_DRBG_ENTROPY_LEN] = { in TEST()
36 const uint8_t kReseed[CTR_DRBG_ENTROPY_LEN] = { in TEST()
64 const uint8_t kSeed[CTR_DRBG_ENTROPY_LEN] = {0}; in TEST()
98 ASSERT_EQ(static_cast<size_t>(CTR_DRBG_ENTROPY_LEN), seed.size()); in TEST()
99 ASSERT_EQ(static_cast<size_t>(CTR_DRBG_ENTROPY_LEN), reseed.size()); in TEST()
Dinternal.h56 #define CTR_DRBG_ENTROPY_LEN 48 macro
64 const uint8_t entropy[CTR_DRBG_ENTROPY_LEN],
72 const uint8_t entropy[CTR_DRBG_ENTROPY_LEN],
/external/boringssl/src/fipstools/
Dcavp_ctr_drbg_test.cc41 CTR_DRBG_ENTROPY_LEN * 8 || in TestCTRDRBG()