/mbedtls-3.7.0/library/ |
D | psa_crypto_aead.c | 112 operation->tag_length = PSA_ALG_AEAD_GET_TAG_LENGTH(alg); in psa_aead_setup() 139 if (ciphertext_size < (plaintext_length + operation.tag_length)) { in mbedtls_psa_aead_encrypt() 154 tag, operation.tag_length)); in mbedtls_psa_aead_encrypt() 166 operation.tag_length, tag)); in mbedtls_psa_aead_encrypt() 171 if (operation.tag_length != 16) { in mbedtls_psa_aead_encrypt() 197 *ciphertext_length = plaintext_length + operation.tag_length; in mbedtls_psa_aead_encrypt() 211 static psa_status_t psa_aead_unpadded_locate_tag(size_t tag_length, in psa_aead_unpadded_locate_tag() argument 218 if (tag_length > ciphertext_length) { in psa_aead_unpadded_locate_tag() 221 payload_length = ciphertext_length - tag_length; in psa_aead_unpadded_locate_tag() 249 status = psa_aead_unpadded_locate_tag(operation.tag_length, in mbedtls_psa_aead_decrypt() [all …]
|
D | psa_crypto_driver_wrappers.h | 2400 size_t *tag_length ) in psa_driver_wrapper_aead_finish() argument 2410 tag_size, tag_length ) ); in psa_driver_wrapper_aead_finish() 2420 ciphertext_length, tag, tag_size, tag_length ) ); in psa_driver_wrapper_aead_finish() 2430 ciphertext_length, tag, tag_size, tag_length ) ); in psa_driver_wrapper_aead_finish() 2440 (void)tag_length; in psa_driver_wrapper_aead_finish() 2451 size_t tag_length ) in psa_driver_wrapper_aead_verify() argument 2472 if( tag_length != check_tag_length || in psa_driver_wrapper_aead_verify() 2473 mbedtls_ct_memcmp( tag, check_tag, tag_length ) in psa_driver_wrapper_aead_verify() 2491 plaintext_length, tag, tag_length ) ); in psa_driver_wrapper_aead_verify() 2501 plaintext_length, tag, tag_length ) ); in psa_driver_wrapper_aead_verify() [all …]
|
D | psa_crypto_aead.h | 470 size_t *tag_length);
|
D | psa_crypto.c | 5331 size_t *tag_length) argument 5342 *tag_length = tag_size; 5357 tag, tag_size, tag_length); 5367 psa_wipe_tag_output_buffer(tag, status, tag_size, *tag_length); 5384 size_t tag_length) argument 5392 LOCAL_INPUT_ALLOC(tag_external, tag_length, tag); 5409 tag, tag_length);
|
/mbedtls-3.7.0/tests/suites/ |
D | test_suite_psa_crypto_metadata.function | 223 size_t tag_length) 238 TEST_EQUAL(tag_length, PSA_AEAD_TAG_LENGTH(key_type, key_bits, alg)); 426 size_t tag_length = tag_length_arg; 432 key_type, key_bits, tag_length); 435 for (n = 1; n <= tag_length; n++) { 446 TEST_EQUAL(PSA_ALG_AEAD_WITH_SHORTENED_TAG(truncated_alg, tag_length - 1), 447 PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg, tag_length - 1)); 448 TEST_EQUAL(PSA_ALG_AEAD_WITH_SHORTENED_TAG(truncated_alg, tag_length), 449 PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg, tag_length)); 460 n), tag_length - 1), [all …]
|
D | test_suite_psa_crypto.function | 378 size_t tag_length = 0; 409 tag_length = PSA_AEAD_TAG_LENGTH(key_type, key_bits, alg); 415 tag_length)); 420 tag_length)); 423 data_true_size = input_data->len - tag_length; 536 tag_buffer, tag_length, 543 tag_length)); 557 TEST_EQUAL(tag_length, tag_size); 559 if (output_data && tag_length) { 561 tag_length); [all …]
|
D | test_suite_psa_crypto_driver_wrappers.function | 2793 size_t tag_length = 0; 2862 PSA_AEAD_TAG_MAX_SIZE, &tag_length)); 2875 TEST_MEMORY_COMPARE(expected_tag->x, expected_tag->len, tag_buffer, tag_length);
|
/mbedtls-3.7.0/tests/src/drivers/ |
D | test_driver_aead.c | 344 size_t *tag_length) in mbedtls_test_transparent_aead_finish() argument 357 tag, tag_size, tag_length); in mbedtls_test_transparent_aead_finish() 362 tag_length); in mbedtls_test_transparent_aead_finish() 370 (void) tag_length; in mbedtls_test_transparent_aead_finish() 384 size_t tag_length) in mbedtls_test_transparent_aead_verify() argument 423 if (tag_length != check_tag_length || in mbedtls_test_transparent_aead_verify() 424 mbedtls_ct_memcmp(tag, check_tag, tag_length) in mbedtls_test_transparent_aead_verify()
|
/mbedtls-3.7.0/tests/include/test/drivers/ |
D | aead.h | 107 size_t *tag_length); 115 size_t tag_length);
|
/mbedtls-3.7.0/include/psa/ |
D | crypto_builtin_composites.h | 85 uint8_t MBEDTLS_PRIVATE(tag_length);
|
D | crypto.h | 2711 size_t *tag_length); 2793 size_t tag_length);
|
D | crypto_values.h | 1327 #define PSA_ALG_AEAD_WITH_SHORTENED_TAG(aead_alg, tag_length) \ argument 1330 ((tag_length) << PSA_AEAD_TAG_LENGTH_OFFSET & \
|
/mbedtls-3.7.0/scripts/data_files/driver_templates/ |
D | psa_crypto_driver_wrappers.h.jinja | 2029 size_t *tag_length ) 2039 tag_size, tag_length ) ); 2049 ciphertext_length, tag, tag_size, tag_length ) ); 2062 (void)tag_length; 2073 size_t tag_length ) 2094 if( tag_length != check_tag_length || 2095 mbedtls_ct_memcmp( tag, check_tag, tag_length ) 2113 plaintext_length, tag, tag_length ) ); 2125 (void)tag_length;
|