/third_party/mbedtls/tests/src/drivers/ |
D | test_driver_aead.c | 37 const uint8_t *plaintext, size_t plaintext_length, in mbedtls_test_transparent_aead_encrypt() argument 56 plaintext, plaintext_length, in mbedtls_test_transparent_aead_encrypt() 68 (void) plaintext_length; in mbedtls_test_transparent_aead_encrypt() 86 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ) in mbedtls_test_transparent_aead_decrypt() argument 105 plaintext, plaintext_size, plaintext_length ); in mbedtls_test_transparent_aead_decrypt() 119 (void) plaintext_length; in mbedtls_test_transparent_aead_decrypt() 222 size_t plaintext_length ) in mbedtls_test_transparent_aead_set_lengths() argument 236 plaintext_length ); in mbedtls_test_transparent_aead_set_lengths() 240 (void) plaintext_length; in mbedtls_test_transparent_aead_set_lengths() 353 size_t *plaintext_length, in mbedtls_test_transparent_aead_verify() argument [all …]
|
/third_party/grpc/test/core/tsi/alts/crypt/ |
D | aes_gcm_test.cc | 42 size_t plaintext_length; member 112 size_t plaintext_length, plaintext_bytes_written = 0; in gsec_test_random_encrypt_decrypt() local 114 &plaintext_length, nullptr); in gsec_test_random_encrypt_decrypt() 115 uint8_t* plaintext = static_cast<uint8_t*>(gpr_malloc(plaintext_length)); in gsec_test_random_encrypt_decrypt() 118 ciphertext_bytes_written, plaintext, plaintext_length, in gsec_test_random_encrypt_decrypt() 128 uint8_t* zero_message = static_cast<uint8_t*>(gpr_zalloc(plaintext_length)); in gsec_test_random_encrypt_decrypt() 139 plaintext_length, &plaintext_bytes_written, &error_message); in gsec_test_random_encrypt_decrypt() 145 GPR_ASSERT(memcmp(zero_message, plaintext, plaintext_length) == 0); in gsec_test_random_encrypt_decrypt() 159 plaintext_length, &plaintext_bytes_written, &error_message); in gsec_test_random_encrypt_decrypt() 165 GPR_ASSERT(memcmp(zero_message, plaintext, plaintext_length) == 0); in gsec_test_random_encrypt_decrypt() [all …]
|
/third_party/mbedtls/library/ |
D | psa_crypto_aead.c | 147 const uint8_t *plaintext, size_t plaintext_length, in mbedtls_psa_aead_encrypt() argument 162 if( ciphertext_size < ( plaintext_length + operation.tag_length ) ) in mbedtls_psa_aead_encrypt() 167 tag = ciphertext + plaintext_length; in mbedtls_psa_aead_encrypt() 174 plaintext_length, in mbedtls_psa_aead_encrypt() 189 plaintext_length, in mbedtls_psa_aead_encrypt() 207 plaintext_length, in mbedtls_psa_aead_encrypt() 228 *ciphertext_length = plaintext_length + operation.tag_length; in mbedtls_psa_aead_encrypt() 264 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ) in mbedtls_psa_aead_decrypt() argument 340 *plaintext_length = ciphertext_length - operation.tag_length; in mbedtls_psa_aead_decrypt() 346 *plaintext_length = ciphertext_length - operation.tag_length; in mbedtls_psa_aead_decrypt() [all …]
|
D | psa_crypto_aead.h | 85 const uint8_t *plaintext, size_t plaintext_length, 149 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ); 309 size_t plaintext_length );
|
D | psa_crypto_driver_wrappers.c | 1520 const uint8_t *plaintext, size_t plaintext_length, in psa_driver_wrapper_aead_encrypt() argument 1540 plaintext, plaintext_length, in psa_driver_wrapper_aead_encrypt() 1554 plaintext, plaintext_length, in psa_driver_wrapper_aead_encrypt() 1573 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ) in psa_driver_wrapper_aead_decrypt() argument 1593 plaintext, plaintext_size, plaintext_length ); in psa_driver_wrapper_aead_decrypt() 1607 plaintext, plaintext_size, plaintext_length ) ); in psa_driver_wrapper_aead_decrypt() 1753 size_t plaintext_length ) in psa_driver_wrapper_aead_set_lengths() argument 1761 plaintext_length ) ); in psa_driver_wrapper_aead_set_lengths() 1770 ad_length, plaintext_length ) ); in psa_driver_wrapper_aead_set_lengths() 1779 (void)plaintext_length; in psa_driver_wrapper_aead_set_lengths() [all …]
|
D | psa_crypto_driver_wrappers.h | 218 const uint8_t *plaintext, size_t plaintext_length, 228 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ); 250 size_t plaintext_length ); 278 size_t *plaintext_length,
|
D | psa_crypto.c | 3721 size_t plaintext_length, in psa_aead_encrypt() argument 3752 plaintext, plaintext_length, in psa_aead_encrypt() 3774 size_t *plaintext_length ) in psa_aead_decrypt() argument 3779 *plaintext_length = 0; in psa_aead_decrypt() 3803 plaintext, plaintext_size, plaintext_length ); in psa_aead_decrypt() 4006 size_t plaintext_length ) in psa_aead_set_lengths() argument 4032 (( uint64_t ) plaintext_length ) > 0xFFFFFFFE0ull ) in psa_aead_set_lengths() 4059 plaintext_length ); in psa_aead_set_lengths() 4065 operation->body_remaining = plaintext_length; in psa_aead_set_lengths() 4253 size_t *plaintext_length, in psa_aead_verify() argument [all …]
|
/third_party/mbedtls/tests/include/test/drivers/ |
D | aead.h | 65 const uint8_t *plaintext, size_t plaintext_length, 75 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ); 97 size_t plaintext_length ); 125 size_t *plaintext_length,
|
/third_party/grpc/src/core/tsi/alts/crypt/ |
D | gsec.cc | 41 size_t plaintext_length, uint8_t* ciphertext_and_tag, in gsec_aead_crypter_encrypt() argument 48 plaintext_length}; in gsec_aead_crypter_encrypt() 82 size_t plaintext_length, size_t* bytes_written, char** error_details) { in gsec_aead_crypter_decrypt() argument 88 struct iovec plaintext_vec = {plaintext, plaintext_length}; in gsec_aead_crypter_decrypt() 117 const gsec_aead_crypter* crypter, size_t plaintext_length, in gsec_aead_crypter_max_ciphertext_and_tag_length() argument 122 crypter, plaintext_length, max_ciphertext_and_tag_length_to_return, in gsec_aead_crypter_max_ciphertext_and_tag_length()
|
D | aes_gcm.cc | 89 const gsec_aead_crypter* crypter, size_t plaintext_length, in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() argument 100 plaintext_length + aes_gcm_crypter->tag_length; in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() 327 size_t plaintext_length = plaintext_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_encrypt_iovec() local 329 if (plaintext_length == 0) { in gsec_aes_gcm_aead_crypter_encrypt_iovec() 335 if (ciphertext_length < plaintext_length) { in gsec_aes_gcm_aead_crypter_encrypt_iovec() 341 int bytes_to_write = static_cast<int>(plaintext_length); in gsec_aes_gcm_aead_crypter_encrypt_iovec() 470 size_t plaintext_length = plaintext_vec.iov_len; in gsec_aes_gcm_aead_crypter_decrypt_iovec() local 471 if (plaintext_length > 0 && plaintext == nullptr) { in gsec_aes_gcm_aead_crypter_decrypt_iovec() 498 if (plaintext_length < bytes_to_write) { in gsec_aes_gcm_aead_crypter_decrypt_iovec() 520 plaintext_length -= bytes_written; in gsec_aes_gcm_aead_crypter_decrypt_iovec() [all …]
|
D | gsec.h | 157 const gsec_aead_crypter* crypter, size_t plaintext_length, 215 size_t plaintext_length, uint8_t* ciphertext_and_tag, 287 size_t plaintext_length, size_t* bytes_written, char** error_details); 339 const gsec_aead_crypter* crypter, size_t plaintext_length,
|
/third_party/mbedtls/include/psa/ |
D | crypto_sizes.h | 298 #define PSA_AEAD_ENCRYPT_OUTPUT_SIZE(key_type, alg, plaintext_length) \ argument 300 (plaintext_length) + PSA_ALG_AEAD_GET_TAG_LENGTH(alg) : \ 321 #define PSA_AEAD_ENCRYPT_OUTPUT_MAX_SIZE(plaintext_length) \ argument 322 ((plaintext_length) + PSA_AEAD_TAG_MAX_SIZE)
|
D | crypto.h | 2137 size_t plaintext_length, 2213 size_t *plaintext_length); 2517 size_t plaintext_length); 2826 size_t *plaintext_length,
|
D | crypto_se_driver.h | 744 size_t plaintext_length,
|
/third_party/mbedtls/tests/src/ |
D | psa_exercise_key.c | 244 size_t plaintext_length = sizeof( ciphertext ); in exercise_aead_key() local 287 &plaintext_length ), in exercise_aead_key() 388 size_t plaintext_length = 16; in exercise_asymmetric_encryption_key() local 393 plaintext, plaintext_length, in exercise_asymmetric_encryption_key() 406 &plaintext_length ); in exercise_asymmetric_encryption_key()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_psa_crypto.function | 4424 size_t plaintext_length = 0; 4485 &plaintext_length ) ); 4495 &plaintext_length,
|
D | test_suite_ssl.function | 3521 /* Minimal non-zero plaintext_length giving desired padding.
|