Home
last modified time | relevance | path

Searched refs:ciphertext_length (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc/src/core/tsi/alts/crypt/
Daes_gcm.cc321 size_t ciphertext_length = ciphertext_vec.iov_len; in gsec_aes_gcm_aead_crypter_encrypt_iovec() local
337 if (ciphertext_length < plaintext_length) { in gsec_aes_gcm_aead_crypter_encrypt_iovec()
354 ciphertext_length -= bytes_written; in gsec_aes_gcm_aead_crypter_encrypt_iovec()
367 if (ciphertext_length < kAesGcmTagLength) { in gsec_aes_gcm_aead_crypter_encrypt_iovec()
379 ciphertext_length -= kAesGcmTagLength; in gsec_aes_gcm_aead_crypter_encrypt_iovec()
380 *ciphertext_bytes_written = ciphertext_vec.iov_len - ciphertext_length; in gsec_aes_gcm_aead_crypter_encrypt_iovec()
480 size_t ciphertext_length = 0; in gsec_aes_gcm_aead_crypter_decrypt_iovec() local
485 ciphertext_length = ciphertext_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_decrypt_iovec()
487 if (ciphertext_length == 0) { in gsec_aes_gcm_aead_crypter_decrypt_iovec()
495 size_t bytes_to_write = ciphertext_length; in gsec_aes_gcm_aead_crypter_decrypt_iovec()
[all …]
/external/grpc-grpc/test/core/tsi/alts/crypt/
Daes_gcm_test.cc310 size_t ciphertext_length = ciphertext_and_tag_lengths[ind]; in gsec_test_multiple_random_encrypt_decrypt() local
312 static_cast<uint8_t*>(malloc(ciphertext_length)); in gsec_test_multiple_random_encrypt_decrypt()
314 ciphertext_length}; in gsec_test_multiple_random_encrypt_decrypt()
325 ciphertext_length) == 0); in gsec_test_multiple_random_encrypt_decrypt()