Home
last modified time | relevance | path

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

/third_party/mbedtls/tests/src/drivers/
Dtest_driver_aead.c366 uint8_t check_tag[PSA_AEAD_TAG_MAX_SIZE]; in mbedtls_test_transparent_aead_verify() local
375 check_tag, in mbedtls_test_transparent_aead_verify()
376 sizeof( check_tag ), in mbedtls_test_transparent_aead_verify()
389 mbedtls_psa_safer_memcmp( tag, check_tag, tag_length ) in mbedtls_test_transparent_aead_verify()
395 mbedtls_platform_zeroize( check_tag, sizeof( check_tag ) ); in mbedtls_test_transparent_aead_verify()
/third_party/mbedtls/library/
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()
Dcipher.c1155 unsigned char check_tag[16]; in mbedtls_cipher_check_tag() local
1191 if( tag_len > sizeof( check_tag ) ) in mbedtls_cipher_check_tag()
1197 check_tag, tag_len ) ) ) in mbedtls_cipher_check_tag()
1203 if( mbedtls_ct_memcmp( tag, check_tag, tag_len ) != 0 ) in mbedtls_cipher_check_tag()
1215 if ( tag_len != sizeof( check_tag ) ) in mbedtls_cipher_check_tag()
1219 (mbedtls_chachapoly_context*) ctx->cipher_ctx, check_tag ); in mbedtls_cipher_check_tag()
1226 if( mbedtls_ct_memcmp( tag, check_tag, tag_len ) != 0 ) in mbedtls_cipher_check_tag()
1235 mbedtls_platform_zeroize( check_tag, tag_len ); in mbedtls_cipher_check_tag()
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()
Dpsa_crypto_driver_wrappers.c1919 uint8_t check_tag[PSA_AEAD_TAG_MAX_SIZE]; in psa_driver_wrapper_aead_verify() local
1926 check_tag, in psa_driver_wrapper_aead_verify()
1927 sizeof( check_tag ), in psa_driver_wrapper_aead_verify()
1933 mbedtls_psa_safer_memcmp( tag, check_tag, tag_length ) in psa_driver_wrapper_aead_verify()
1938 mbedtls_platform_zeroize( check_tag, sizeof( check_tag ) ); in psa_driver_wrapper_aead_verify()
Dgcm.c618 unsigned char check_tag[16]; in mbedtls_gcm_auth_decrypt() local
631 input, output, tag_len, check_tag ) ) != 0 ) in mbedtls_gcm_auth_decrypt()
638 diff |= tag[i] ^ check_tag[i]; in mbedtls_gcm_auth_decrypt()
/third_party/ffmpeg/libavformat/
Did3v2.c204 static int check_tag(AVIOContext *s, int offset, unsigned int len) in check_tag() function
904 if (check_tag(pb, cur + 2 + size_to_syncsafe(tlen), 4) == 1) in id3v2_parse()
906 else if (check_tag(pb, cur + 2 + tlen, 4) != 1) in id3v2_parse()