Home
last modified time | relevance | path

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

/external/grpc-grpc/test/core/tsi/alts/crypt/
Daes_gcm_test.cc38 size_t nonce_length; member
83 size_t nonce_length, tag_length; in gsec_test_random_encrypt_decrypt() local
85 gsec_aead_crypter_nonce_length(crypter, &nonce_length, nullptr); in gsec_test_random_encrypt_decrypt()
88 gsec_test_random_array(&nonce, nonce_length); in gsec_test_random_encrypt_decrypt()
102 gsec_aead_crypter_encrypt(crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt()
116 crypter, nonce, nonce_length, aad, aad_length, ciphertext_and_tag, in gsec_test_random_encrypt_decrypt()
131 if (nonce_length > 0) { in gsec_test_random_encrypt_decrypt()
134 gsec_test_copy_and_alter_random_byte(nonce, &corrupt_nonce, nonce_length); in gsec_test_random_encrypt_decrypt()
136 crypter, corrupt_nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt()
156 crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt()
[all …]
/external/grpc-grpc/src/core/tsi/alts/crypt/
Dgsec.cc39 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_encrypt() argument
51 crypter, nonce, nonce_length, &aad_vec, 1, &plaintext_vec, 1, in gsec_aead_crypter_encrypt()
60 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_encrypt_iovec() argument
68 crypter, nonce, nonce_length, aad_vec, aad_vec_length, plaintext_vec, in gsec_aead_crypter_encrypt_iovec()
78 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_decrypt() argument
89 crypter, nonce, nonce_length, &aad_vec, 1, &ciphertext_vec, 1, in gsec_aead_crypter_decrypt()
98 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_decrypt_iovec() argument
106 crypter, nonce, nonce_length, aad_vec, aad_vec_length, ciphertext_vec, in gsec_aead_crypter_decrypt_iovec()
147 crypter->vtable->nonce_length != nullptr) { in gsec_aead_crypter_nonce_length()
148 return crypter->vtable->nonce_length(crypter, nonce_length_to_return, in gsec_aead_crypter_nonce_length()
Dgsec.h143 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
149 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
160 grpc_status_code (*nonce_length)(const gsec_aead_crypter* crypter, member
211 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
244 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
282 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
312 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
449 size_t nonce_length,
Daes_gcm.cc49 size_t nonce_length; member
128 const gsec_aead_crypter* crypter, size_t* nonce_length, in gsec_aes_gcm_aead_crypter_nonce_length() argument
130 if (nonce_length == nullptr) { in gsec_aes_gcm_aead_crypter_nonce_length()
137 *nonce_length = aes_gcm_crypter->nonce_length; in gsec_aes_gcm_aead_crypter_nonce_length()
247 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aes_gcm_aead_crypter_encrypt_iovec() argument
259 if (kAesGcmNonceLength != nonce_length) { in gsec_aes_gcm_aead_crypter_encrypt_iovec()
385 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aes_gcm_aead_crypter_decrypt_iovec() argument
397 if (kAesGcmNonceLength != nonce_length) { in gsec_aes_gcm_aead_crypter_decrypt_iovec()
624 static_cast<int>(aes_gcm_crypter->nonce_length), in aes_gcm_new_evp_cipher_ctx()
634 size_t nonce_length, in gsec_aes_gcm_aead_crypter_create() argument
[all …]