Searched refs:check_tag (Results 1 – 4 of 4) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| A D | chachapoly.c | 353 unsigned char check_tag[16]; in mbedtls_chachapoly_auth_decrypt() local 365 aad, aad_len, input, output, check_tag ) ) != 0 ) in mbedtls_chachapoly_auth_decrypt() 371 for( diff = 0, i = 0; i < sizeof( check_tag ); i++ ) in mbedtls_chachapoly_auth_decrypt() 372 diff |= tag[i] ^ check_tag[i]; in mbedtls_chachapoly_auth_decrypt()
|
| A D | ccm.c | 365 unsigned char check_tag[16]; in mbedtls_ccm_star_auth_decrypt() local 378 input, output, check_tag, tag_len ) ) != 0 ) in mbedtls_ccm_star_auth_decrypt() 385 diff |= tag[i] ^ check_tag[i]; in mbedtls_ccm_star_auth_decrypt()
|
| A D | cipher.c | 1164 unsigned char check_tag[16]; in mbedtls_cipher_check_tag() local 1190 if( tag_len > sizeof( check_tag ) ) in mbedtls_cipher_check_tag() 1195 check_tag, tag_len ) ) ) in mbedtls_cipher_check_tag() 1201 if( mbedtls_constant_time_memcmp( tag, check_tag, tag_len ) != 0 ) in mbedtls_cipher_check_tag() 1212 if ( tag_len != sizeof( check_tag ) ) in mbedtls_cipher_check_tag() 1216 (mbedtls_chachapoly_context*) ctx->cipher_ctx, check_tag ); in mbedtls_cipher_check_tag() 1223 if( mbedtls_constant_time_memcmp( tag, check_tag, tag_len ) != 0 ) in mbedtls_cipher_check_tag()
|
| A D | gcm.c | 507 unsigned char check_tag[16]; in mbedtls_gcm_auth_decrypt() local 520 input, output, tag_len, check_tag ) ) != 0 ) in mbedtls_gcm_auth_decrypt() 527 diff |= tag[i] ^ check_tag[i]; in mbedtls_gcm_auth_decrypt()
|
Completed in 9 milliseconds