Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/fipsmodule/modes/
Dgcm_test.cc72 std::vector<uint8_t> key, plaintext, additional_data, nonce, ciphertext, in TEST() local
76 ASSERT_TRUE(t->GetBytes(&additional_data, "AdditionalData")); in TEST()
92 if (!additional_data.empty()) { in TEST()
93 CRYPTO_gcm128_aad(&ctx, additional_data.data(), additional_data.size()); in TEST()
104 if (!additional_data.empty()) { in TEST()
105 CRYPTO_gcm128_aad(&ctx, additional_data.data(), additional_data.size()); in TEST()
/external/boringssl/src/crypto/fipsmodule/rand/
Drand.c245 uint8_t additional_data[32]; in RAND_bytes_with_additional_data() local
246 if (!hwrand(additional_data, sizeof(additional_data))) { in RAND_bytes_with_additional_data()
252 CRYPTO_sysrand(additional_data, sizeof(additional_data)); in RAND_bytes_with_additional_data()
254 OPENSSL_memset(additional_data, 0, sizeof(additional_data)); in RAND_bytes_with_additional_data()
258 for (size_t i = 0; i < sizeof(additional_data); i++) { in RAND_bytes_with_additional_data()
259 additional_data[i] ^= user_additional_data[i]; in RAND_bytes_with_additional_data()
330 if (!CTR_DRBG_generate(&state->drbg, out, todo, additional_data, in RAND_bytes_with_additional_data()
331 first_call ? sizeof(additional_data) : 0)) { in RAND_bytes_with_additional_data()
Dctrdrbg.c104 const uint8_t *additional_data, in CTR_DRBG_reseed() argument
116 entropy_copy[i] ^= additional_data[i]; in CTR_DRBG_reseed()
132 const uint8_t *additional_data, in CTR_DRBG_generate() argument
145 !CTR_DRBG_update(drbg, additional_data, additional_data_len)) { in CTR_DRBG_generate()
190 if (!CTR_DRBG_update(drbg, additional_data, additional_data_len)) { in CTR_DRBG_generate()
Dinternal.h72 const uint8_t *additional_data,
81 const uint8_t *additional_data,
/external/boringssl/src/crypto/fipsmodule/bn/
Drandom.c127 const uint8_t additional_data[32]) { in bn_rand_with_additional_data()
162 RAND_bytes_with_additional_data(buf, bytes, additional_data); in bn_rand_with_additional_data()
209 const uint8_t additional_data[32]) { in bn_rand_range_with_additional_data()
228 additional_data) || in bn_rand_range_with_additional_data()