Home
last modified time | relevance | path

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

/external/grpc-grpc/test/core/tsi/alts/crypt/
Daes_gcm_test.cc41 size_t plaintext_length; member
111 size_t plaintext_length, plaintext_bytes_written = 0; in gsec_test_random_encrypt_decrypt() local
113 &plaintext_length, nullptr); in gsec_test_random_encrypt_decrypt()
114 uint8_t* plaintext = static_cast<uint8_t*>(gpr_malloc(plaintext_length)); in gsec_test_random_encrypt_decrypt()
117 ciphertext_bytes_written, plaintext, plaintext_length, in gsec_test_random_encrypt_decrypt()
127 uint8_t* zero_message = static_cast<uint8_t*>(gpr_zalloc(plaintext_length)); in gsec_test_random_encrypt_decrypt()
138 plaintext_length, &plaintext_bytes_written, &error_message); in gsec_test_random_encrypt_decrypt()
144 GPR_ASSERT(memcmp(zero_message, plaintext, plaintext_length) == 0); in gsec_test_random_encrypt_decrypt()
158 plaintext_length, &plaintext_bytes_written, &error_message); in gsec_test_random_encrypt_decrypt()
164 GPR_ASSERT(memcmp(zero_message, plaintext, plaintext_length) == 0); in gsec_test_random_encrypt_decrypt()
[all …]
/external/grpc-grpc/src/core/tsi/alts/crypt/
Dgsec.cc41 size_t plaintext_length, uint8_t* ciphertext_and_tag, in gsec_aead_crypter_encrypt() argument
47 struct iovec plaintext_vec = {(void*)plaintext, plaintext_length}; in gsec_aead_crypter_encrypt()
81 size_t plaintext_length, size_t* bytes_written, char** error_details) { in gsec_aead_crypter_decrypt() argument
87 struct iovec plaintext_vec = {plaintext, plaintext_length}; in gsec_aead_crypter_decrypt()
116 const gsec_aead_crypter* crypter, size_t plaintext_length, in gsec_aead_crypter_max_ciphertext_and_tag_length() argument
121 crypter, plaintext_length, max_ciphertext_and_tag_length_to_return, in gsec_aead_crypter_max_ciphertext_and_tag_length()
Daes_gcm.cc91 const gsec_aead_crypter* crypter, size_t plaintext_length, in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() argument
102 plaintext_length + aes_gcm_crypter->tag_length; in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length()
329 size_t plaintext_length = plaintext_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_encrypt_iovec() local
331 if (plaintext_length == 0) { in gsec_aes_gcm_aead_crypter_encrypt_iovec()
337 if (ciphertext_length < plaintext_length) { in gsec_aes_gcm_aead_crypter_encrypt_iovec()
343 int bytes_to_write = static_cast<int>(plaintext_length); in gsec_aes_gcm_aead_crypter_encrypt_iovec()
472 size_t plaintext_length = plaintext_vec.iov_len; in gsec_aes_gcm_aead_crypter_decrypt_iovec() local
473 if (plaintext_length > 0 && plaintext == nullptr) { in gsec_aes_gcm_aead_crypter_decrypt_iovec()
500 if (plaintext_length < bytes_to_write) { in gsec_aes_gcm_aead_crypter_decrypt_iovec()
522 plaintext_length -= bytes_written; in gsec_aes_gcm_aead_crypter_decrypt_iovec()
[all …]
Dgsec.h155 const gsec_aead_crypter* crypter, size_t plaintext_length,
213 size_t plaintext_length, uint8_t* ciphertext_and_tag,
285 size_t plaintext_length, size_t* bytes_written, char** error_details);
337 const gsec_aead_crypter* crypter, size_t plaintext_length,