Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 16 of 16) sorted by relevance

/mbedtls-development/library/
A Dnist_kw.c61 volatile unsigned char diff = 0; in mbedtls_nist_kw_safer_memcmp() local
69 diff |= x ^ y; in mbedtls_nist_kw_safer_memcmp()
72 return( diff ); in mbedtls_nist_kw_safer_memcmp()
372 unsigned char diff, bad_padding = 0; in mbedtls_nist_kw_unwrap() local
401 diff = mbedtls_nist_kw_safer_memcmp( NIST_KW_ICV1, A, KW_SEMIBLOCK_LENGTH ); in mbedtls_nist_kw_unwrap()
403 if( diff != 0 ) in mbedtls_nist_kw_unwrap()
452 if( diff != 0 ) in mbedtls_nist_kw_unwrap()
472 for( diff = 0, i = 0; i < KW_SEMIBLOCK_LENGTH; i++ ) in mbedtls_nist_kw_unwrap()
475 diff |= output[*out_len - KW_SEMIBLOCK_LENGTH + i]; in mbedtls_nist_kw_unwrap()
480 if( diff != 0 ) in mbedtls_nist_kw_unwrap()
[all …]
A Dpsa_crypto_core.h41 unsigned char diff = 0; in mbedtls_psa_safer_memcmp() local
44 diff |= a[i] ^ b[i]; in mbedtls_psa_safer_memcmp()
46 return( diff ); in mbedtls_psa_safer_memcmp()
A Dchachapoly.c341 int diff; in mbedtls_chachapoly_auth_decrypt() local
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()
360 if( diff != 0 ) in mbedtls_chachapoly_auth_decrypt()
A Dccm.c545 int diff; in mbedtls_ccm_compare_tags() local
548 for( diff = 0, i = 0; i < tag_len; i++ ) in mbedtls_ccm_compare_tags()
549 diff |= tag1[i] ^ tag2[i]; in mbedtls_ccm_compare_tags()
551 if( diff != 0 ) in mbedtls_ccm_compare_tags()
A Dgcm.c618 int diff; in mbedtls_gcm_auth_decrypt() local
635 for( diff = 0, i = 0; i < tag_len; i++ ) in mbedtls_gcm_auth_decrypt()
636 diff |= tag[i] ^ check_tag[i]; in mbedtls_gcm_auth_decrypt()
638 if( diff != 0 ) in mbedtls_gcm_auth_decrypt()
A Dssl_misc.h1395 volatile unsigned char diff = 0; in mbedtls_ssl_safer_memcmp() local
1403 diff |= x ^ y; in mbedtls_ssl_safer_memcmp()
1406 return( diff ); in mbedtls_ssl_safer_memcmp()
A Dcipher.c89 unsigned char diff; in mbedtls_constant_time_memcmp() local
91 for( diff = 0, i = 0; i < len; i++ ) in mbedtls_constant_time_memcmp()
92 diff |= p1[i] ^ p2[i]; in mbedtls_constant_time_memcmp()
94 return( (int)diff ); in mbedtls_constant_time_memcmp()
A Dssl_srv.c3537 unsigned int diff; in ssl_parse_encrypted_pms() local
3566 diff = (unsigned int) ret; in ssl_parse_encrypted_pms()
3567 diff |= peer_pmslen ^ 48; in ssl_parse_encrypted_pms()
3568 diff |= peer_pms[0] ^ ver[0]; in ssl_parse_encrypted_pms()
3569 diff |= peer_pms[1] ^ ver[1]; in ssl_parse_encrypted_pms()
3578 mask = - ( ( diff | - diff ) >> ( sizeof( unsigned int ) * 8 - 1 ) ); in ssl_parse_encrypted_pms()
3601 if( diff != 0 ) in ssl_parse_encrypted_pms()
A Dx509_crt.c257 unsigned char diff; in x509_memcasecmp() local
262 diff = n1[i] ^ n2[i]; in x509_memcasecmp()
264 if( diff == 0 ) in x509_memcasecmp()
267 if( diff == 32 && in x509_memcasecmp()
A Drsa.c82 unsigned char diff = 0; in mbedtls_safer_memcmp() local
85 diff |= A[i] ^ B[i]; in mbedtls_safer_memcmp()
87 return( diff ); in mbedtls_safer_memcmp()
A Dbignum.c2244 const size_t diff = x ^ y; in mbedtls_mpi_cf_bool_eq() local
2254 const size_t diff_msb = ( diff | (size_t) -diff ); in mbedtls_mpi_cf_bool_eq()
A Dssl_msg.c1045 const size_t diff = x ^ y; in mbedtls_ssl_cf_bool_eq() local
1055 const size_t diff_msb = ( diff | -diff ); in mbedtls_ssl_cf_bool_eq()
/mbedtls-development/programs/hash/
A Dgeneric_sum.c87 char diff; in generic_check() local
140 diff = 0; in generic_check()
142 diff |= line[i] ^ buf[i]; in generic_check()
144 if( diff != 0 ) in generic_check()
/mbedtls-development/programs/aes/
A Dcrypt_and_hash.c95 unsigned char diff; in main() local
518 diff = 0; in main()
520 diff |= digest[i] ^ buffer[i]; in main()
522 if( diff != 0 ) in main()
/mbedtls-development/tests/scripts/
A Dall.sh526 if ! git diff --quiet include/mbedtls/mbedtls_config.h; then
850 diff -u ChangeLog ChangeLog.new || true
/mbedtls-development/tests/
A Dssl-opt.sh54 if git diff --quiet ../include/mbedtls/mbedtls_config.h 2>/dev/null; then

Completed in 54 milliseconds