Searched refs:check_tag (Results 1 - 7 of 7) sorted by relevance
/third_party/mbedtls/tests/src/drivers/ |
H A D | test_driver_aead.c | 392 uint8_t check_tag[PSA_AEAD_TAG_MAX_SIZE]; in mbedtls_test_transparent_aead_verify() local 402 check_tag, in mbedtls_test_transparent_aead_verify() 403 sizeof(check_tag), in mbedtls_test_transparent_aead_verify() 411 check_tag, in mbedtls_test_transparent_aead_verify() 412 sizeof(check_tag), in mbedtls_test_transparent_aead_verify() 424 mbedtls_ct_memcmp(tag, check_tag, tag_length) in mbedtls_test_transparent_aead_verify() 431 mbedtls_platform_zeroize(check_tag, sizeof(check_tag)); in mbedtls_test_transparent_aead_verify()
|
/third_party/mbedtls/library/ |
H A D | chachapoly.c | 301 unsigned char check_tag[16]; in mbedtls_chachapoly_auth_decrypt() local 306 aad, aad_len, input, output, check_tag)) != 0) { in mbedtls_chachapoly_auth_decrypt() 311 diff = mbedtls_ct_memcmp(tag, check_tag, sizeof(check_tag)); in mbedtls_chachapoly_auth_decrypt()
|
H A D | cipher.c | 1228 unsigned char check_tag[16]; in mbedtls_cipher_check_tag() local 1257 if (tag_len > sizeof(check_tag)) { in mbedtls_cipher_check_tag() 1264 check_tag, tag_len))) { in mbedtls_cipher_check_tag() 1269 if (mbedtls_ct_memcmp(tag, check_tag, tag_len) != 0) { in mbedtls_cipher_check_tag() 1279 if (tag_len != sizeof(check_tag)) { in mbedtls_cipher_check_tag() 1284 (mbedtls_chachapoly_context *) ctx->cipher_ctx, check_tag); in mbedtls_cipher_check_tag() 1290 if (mbedtls_ct_memcmp(tag, check_tag, tag_len) != 0) { in mbedtls_cipher_check_tag() 1298 mbedtls_platform_zeroize(check_tag, tag_len); in mbedtls_cipher_check_tag()
|
H A D | ccm.c | 592 unsigned char check_tag[16]; in ccm_auth_decrypt() local 596 input, output, check_tag, tag_len)) != 0) { in ccm_auth_decrypt() 600 if ((ret = mbedtls_ccm_compare_tags(tag, check_tag, tag_len)) != 0) { in ccm_auth_decrypt()
|
H A D | psa_crypto_driver_wrappers.c | 1749 uint8_t check_tag[PSA_AEAD_TAG_MAX_SIZE]; in psa_driver_wrapper_aead_verify() local 1753 check_tag, sizeof(check_tag), &check_tag_length); in psa_driver_wrapper_aead_verify() 1756 if (tag_length != check_tag_length || mbedtls_ct_memcmp(tag, check_tag, tag_length) != 0) in psa_driver_wrapper_aead_verify() 1760 mbedtls_platform_zeroize(check_tag, sizeof(check_tag)); in psa_driver_wrapper_aead_verify()
|
H A D | gcm.c | 750 unsigned char check_tag[16]; in mbedtls_gcm_auth_decrypt() local 755 input, output, tag_len, check_tag)) != 0) { in mbedtls_gcm_auth_decrypt() 760 diff = mbedtls_ct_memcmp(tag, check_tag, tag_len); in mbedtls_gcm_auth_decrypt()
|
/third_party/ffmpeg/libavformat/ |
H A D | id3v2.c | 205 static int check_tag(AVIOContext *s, int offset, unsigned int len) in check_tag() function 979 if (check_tag(pb, cur + 2 + size_to_syncsafe(tlen), 4) == 1) in id3v2_parse() 981 else if (check_tag(pb, cur + 2 + tlen, 4) != 1) in id3v2_parse()
|
Completed in 14 milliseconds