Home
last modified time | relevance | path

Searched refs:check_tag (Results 1 – 6 of 6) sorted by relevance

/mbedtls-development/tests/src/drivers/
A Dtest_driver_aead.c272 uint8_t check_tag[PSA_AEAD_TAG_MAX_SIZE]; in mbedtls_test_transparent_aead_verify() local
280 check_tag, in mbedtls_test_transparent_aead_verify()
281 sizeof( check_tag ), in mbedtls_test_transparent_aead_verify()
287 mbedtls_psa_safer_memcmp( tag, check_tag, tag_length ) in mbedtls_test_transparent_aead_verify()
293 mbedtls_platform_zeroize( check_tag, sizeof( check_tag ) ); in mbedtls_test_transparent_aead_verify()
/mbedtls-development/library/
A Dchachapoly.c339 unsigned char check_tag[16]; in mbedtls_chachapoly_auth_decrypt() local
351 aad, aad_len, input, output, check_tag ) ) != 0 ) in mbedtls_chachapoly_auth_decrypt()
357 for( diff = 0, i = 0; i < sizeof( check_tag ); i++ ) in mbedtls_chachapoly_auth_decrypt()
358 diff |= tag[i] ^ check_tag[i]; in mbedtls_chachapoly_auth_decrypt()
A Dcipher.c1175 unsigned char check_tag[16]; in mbedtls_cipher_check_tag() local
1205 if( tag_len > sizeof( check_tag ) ) in mbedtls_cipher_check_tag()
1211 check_tag, tag_len ) ) ) in mbedtls_cipher_check_tag()
1217 if( mbedtls_constant_time_memcmp( tag, check_tag, tag_len ) != 0 ) in mbedtls_cipher_check_tag()
1228 if ( tag_len != sizeof( check_tag ) ) in mbedtls_cipher_check_tag()
1232 (mbedtls_chachapoly_context*) ctx->cipher_ctx, check_tag ); in mbedtls_cipher_check_tag()
1239 if( mbedtls_constant_time_memcmp( tag, check_tag, tag_len ) != 0 ) in mbedtls_cipher_check_tag()
A Dccm.c566 unsigned char check_tag[16]; in ccm_auth_decrypt() local
570 input, output, check_tag, tag_len ) ) != 0 ) in ccm_auth_decrypt()
575 if( ( ret = mbedtls_ccm_compare_tags( tag, check_tag, tag_len ) ) != 0 ) in ccm_auth_decrypt()
A Dpsa_crypto_driver_wrappers.c1869 uint8_t check_tag[PSA_AEAD_TAG_MAX_SIZE]; in psa_driver_wrapper_aead_verify() local
1876 check_tag, in psa_driver_wrapper_aead_verify()
1877 sizeof( check_tag ), in psa_driver_wrapper_aead_verify()
1883 mbedtls_psa_safer_memcmp( tag, check_tag, tag_length ) in psa_driver_wrapper_aead_verify()
1888 mbedtls_platform_zeroize( check_tag, sizeof( check_tag ) ); in psa_driver_wrapper_aead_verify()
A Dgcm.c616 unsigned char check_tag[16]; in mbedtls_gcm_auth_decrypt() local
629 input, output, tag_len, check_tag ) ) != 0 ) in mbedtls_gcm_auth_decrypt()
636 diff |= tag[i] ^ check_tag[i]; in mbedtls_gcm_auth_decrypt()

Completed in 15 milliseconds