Home
last modified time | relevance | path

Searched refs:aad_length (Results 1 – 4 of 4) sorted by relevance

/third_party/grpc/test/core/tsi/alts/crypt/
Daes_gcm_test.cc40 size_t aad_length; member
81 size_t aad_length, in gsec_test_random_encrypt_decrypt() argument
90 gsec_test_random_array(&aad, aad_length); in gsec_test_random_encrypt_decrypt()
103 gsec_aead_crypter_encrypt(crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt()
117 crypter, nonce, nonce_length, aad, aad_length, ciphertext_and_tag, in gsec_test_random_encrypt_decrypt()
137 crypter, corrupt_nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt()
157 crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt()
175 crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt()
193 crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt()
216 size_t aad_length, message_length; in gsec_test_encrypt_decrypt() local
[all …]
/third_party/grpc/src/core/tsi/alts/crypt/
Dgsec.cc40 const uint8_t* aad, size_t aad_length, const uint8_t* plaintext, in gsec_aead_crypter_encrypt() argument
46 struct iovec aad_vec = {const_cast<uint8_t*>(aad), aad_length}; in gsec_aead_crypter_encrypt()
80 const uint8_t* aad, size_t aad_length, const uint8_t* ciphertext_and_tag, in gsec_aead_crypter_decrypt() argument
85 struct iovec aad_vec = {const_cast<uint8_t*>(aad), aad_length}; in gsec_aead_crypter_decrypt()
Daes_gcm.cc300 size_t aad_length = aad_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_encrypt_iovec() local
301 if (aad_length == 0) { in gsec_aes_gcm_aead_crypter_encrypt_iovec()
311 static_cast<int>(aad_length)) || in gsec_aes_gcm_aead_crypter_encrypt_iovec()
312 aad_bytes_read != aad_length) { in gsec_aes_gcm_aead_crypter_encrypt_iovec()
450 size_t aad_length = aad_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_decrypt_iovec() local
451 if (aad_length == 0) { in gsec_aes_gcm_aead_crypter_decrypt_iovec()
461 static_cast<int>(aad_length)) || in gsec_aes_gcm_aead_crypter_decrypt_iovec()
462 aad_bytes_read != aad_length) { in gsec_aes_gcm_aead_crypter_decrypt_iovec()
Dgsec.h214 const uint8_t* aad, size_t aad_length, const uint8_t* plaintext,
285 const uint8_t* aad, size_t aad_length, const uint8_t* ciphertext_and_tag,