Home
last modified time | relevance | path

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

/third_party/grpc/test/core/tsi/alts/crypt/
Daes_gcm_test.cc39 size_t nonce_length; member
84 size_t nonce_length, tag_length; in gsec_test_random_encrypt_decrypt() local
86 gsec_aead_crypter_nonce_length(crypter, &nonce_length, nullptr); in gsec_test_random_encrypt_decrypt()
89 gsec_test_random_array(&nonce, nonce_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()
132 if (nonce_length > 0) { in gsec_test_random_encrypt_decrypt()
135 gsec_test_copy_and_alter_random_byte(nonce, &corrupt_nonce, nonce_length); 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()
[all …]
/third_party/grpc/src/core/tsi/alts/crypt/
Dgsec.h145 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
151 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
162 grpc_status_code (*nonce_length)(const gsec_aead_crypter* crypter, member
213 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
246 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
284 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
314 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length,
451 size_t nonce_length,
Dgsec.cc39 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_encrypt() argument
52 crypter, nonce, nonce_length, &aad_vec, 1, &plaintext_vec, 1, in gsec_aead_crypter_encrypt()
61 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_encrypt_iovec() argument
69 crypter, nonce, nonce_length, aad_vec, aad_vec_length, plaintext_vec, in gsec_aead_crypter_encrypt_iovec()
79 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_decrypt() argument
90 crypter, nonce, nonce_length, &aad_vec, 1, &ciphertext_vec, 1, in gsec_aead_crypter_decrypt()
99 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_decrypt_iovec() argument
107 crypter, nonce, nonce_length, aad_vec, aad_vec_length, ciphertext_vec, in gsec_aead_crypter_decrypt_iovec()
148 crypter->vtable->nonce_length != nullptr) { in gsec_aead_crypter_nonce_length()
149 return crypter->vtable->nonce_length(crypter, nonce_length_to_return, in gsec_aead_crypter_nonce_length()
Daes_gcm.cc47 size_t nonce_length; member
126 const gsec_aead_crypter* crypter, size_t* nonce_length, in gsec_aes_gcm_aead_crypter_nonce_length() argument
128 if (nonce_length == nullptr) { in gsec_aes_gcm_aead_crypter_nonce_length()
135 *nonce_length = aes_gcm_crypter->nonce_length; in gsec_aes_gcm_aead_crypter_nonce_length()
245 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aes_gcm_aead_crypter_encrypt_iovec() argument
257 if (kAesGcmNonceLength != nonce_length) { in gsec_aes_gcm_aead_crypter_encrypt_iovec()
383 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aes_gcm_aead_crypter_decrypt_iovec() argument
395 if (kAesGcmNonceLength != nonce_length) { in gsec_aes_gcm_aead_crypter_decrypt_iovec()
622 static_cast<int>(aes_gcm_crypter->nonce_length), in aes_gcm_new_evp_cipher_ctx()
632 size_t nonce_length, in gsec_aes_gcm_aead_crypter_create() argument
[all …]
/third_party/mbedtls/library/
Dpsa_crypto_aead.c145 const uint8_t *nonce, size_t nonce_length, in mbedtls_psa_aead_encrypt() argument
175 nonce, nonce_length, in mbedtls_psa_aead_encrypt()
190 nonce, nonce_length, in mbedtls_psa_aead_encrypt()
220 (void) nonce_length; in mbedtls_psa_aead_encrypt()
261 const uint8_t *nonce, size_t nonce_length, in mbedtls_psa_aead_decrypt() argument
288 nonce, nonce_length, in mbedtls_psa_aead_decrypt()
302 nonce, nonce_length, in mbedtls_psa_aead_decrypt()
332 (void) nonce_length; in mbedtls_psa_aead_decrypt()
394 size_t nonce_length ) in mbedtls_psa_aead_set_nonce() argument
406 nonce_length ) ); in mbedtls_psa_aead_set_nonce()
[all …]
Dpsa_crypto_aead.h83 const uint8_t *nonce, size_t nonce_length,
146 const uint8_t *nonce, size_t nonce_length,
268 size_t nonce_length );
Dpsa_crypto_driver_wrappers.c1518 const uint8_t *nonce, size_t nonce_length, in psa_driver_wrapper_aead_encrypt() argument
1538 nonce, nonce_length, in psa_driver_wrapper_aead_encrypt()
1552 nonce, nonce_length, in psa_driver_wrapper_aead_encrypt()
1570 const uint8_t *nonce, size_t nonce_length, in psa_driver_wrapper_aead_decrypt() argument
1590 nonce, nonce_length, in psa_driver_wrapper_aead_decrypt()
1604 nonce, nonce_length, in psa_driver_wrapper_aead_decrypt()
1719 size_t nonce_length ) in psa_driver_wrapper_aead_set_nonce() argument
1727 nonce_length ) ); in psa_driver_wrapper_aead_set_nonce()
1736 nonce, nonce_length ) ); in psa_driver_wrapper_aead_set_nonce()
1745 (void)nonce_length; in psa_driver_wrapper_aead_set_nonce()
Dpsa_crypto_driver_wrappers.h216 const uint8_t *nonce, size_t nonce_length,
225 const uint8_t *nonce, size_t nonce_length,
245 size_t nonce_length );
Dpsa_crypto.c3675 size_t nonce_length ) in psa_aead_check_nonce_length() argument
3689 if( nonce_length != 0 ) in psa_aead_check_nonce_length()
3695 if( nonce_length >= 7 && nonce_length <= 13 ) in psa_aead_check_nonce_length()
3701 if( nonce_length == 12 ) in psa_aead_check_nonce_length()
3703 else if( nonce_length == 8 ) in psa_aead_check_nonce_length()
3717 size_t nonce_length, in psa_aead_encrypt() argument
3743 status = psa_aead_check_nonce_length( alg, nonce_length ); in psa_aead_encrypt()
3750 nonce, nonce_length, in psa_aead_encrypt()
3767 size_t nonce_length, in psa_aead_decrypt() argument
3793 status = psa_aead_check_nonce_length( alg, nonce_length ); in psa_aead_decrypt()
[all …]
/third_party/mbedtls/tests/src/drivers/
Dtest_driver_aead.c35 const uint8_t *nonce, size_t nonce_length, in mbedtls_test_transparent_aead_encrypt() argument
54 nonce, nonce_length, in mbedtls_test_transparent_aead_encrypt()
64 (void) nonce_length; in mbedtls_test_transparent_aead_encrypt()
83 const uint8_t *nonce, size_t nonce_length, in mbedtls_test_transparent_aead_decrypt() argument
102 nonce, nonce_length, in mbedtls_test_transparent_aead_decrypt()
112 (void) nonce_length; in mbedtls_test_transparent_aead_decrypt()
194 size_t nonce_length ) in mbedtls_test_transparent_aead_set_nonce() argument
207 mbedtls_psa_aead_set_nonce( operation, nonce, nonce_length ); in mbedtls_test_transparent_aead_set_nonce()
211 (void) nonce_length; in mbedtls_test_transparent_aead_set_nonce()
/third_party/mbedtls/tests/include/test/drivers/
Daead.h63 const uint8_t *nonce, size_t nonce_length,
72 const uint8_t *nonce, size_t nonce_length,
92 size_t nonce_length );
/third_party/mbedtls/tests/include/test/
Dpsa_crypto_helpers.h266 nonce_length ) \ argument
272 ( ( nonce_length ) != 12 ) ) \
/third_party/mbedtls/include/psa/
Dcrypto.h2133 size_t nonce_length,
2206 size_t nonce_length,
2431 size_t *nonce_length);
2471 size_t nonce_length);
Dcrypto_se_driver.h740 size_t nonce_length,
782 size_t nonce_length,
/third_party/mbedtls/tests/src/
Dpsa_exercise_key.c240 size_t nonce_length = sizeof( nonce ); in exercise_aead_key() local
256 nonce_length = 12; in exercise_aead_key()
263 nonce_length = 12; in exercise_aead_key()
269 nonce, nonce_length, in exercise_aead_key()
283 nonce, nonce_length, in exercise_aead_key()
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto.function1243 size_t nonce_length = nonce_length_arg;
1248 TEST_ASSERT( nonce_length <= sizeof( nonce ) );
1265 nonce, nonce_length,
1277 nonce, nonce_length,
4016 int nonce_length,
4070 MBEDTLS_TEST_PSA_SKIP_IF_ALT_GCM_NOT_12BYTES_NONCE( alg, nonce_length );
4076 nonce_length,
4135 size_t nonce_length;
4182 nonce_length = 0;
4187 nonce_length = ( size_t ) nonce_length_arg;
[all …]