Home
last modified time | relevance | path

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

/mbedtls-3.6.0/library/
Dconstant_time.c94 uint32_t diff = 0; in mbedtls_ct_memcmp() local
100 diff |= x ^ y; in mbedtls_ct_memcmp()
109 diff |= x ^ y; in mbedtls_ct_memcmp()
128 return (int) ((diff & 0xffff) | (diff >> 16)); in mbedtls_ct_memcmp()
140 unsigned int diff = 0; in mbedtls_ct_memcmp_partial() local
152 diff |= mbedtls_ct_uint_if_else_0(valid, d); in mbedtls_ct_memcmp_partial()
157 return (int) diff; in mbedtls_ct_memcmp_partial()
Dnist_kw.c327 int diff; in mbedtls_nist_kw_unwrap() local
354 diff = mbedtls_ct_memcmp(NIST_KW_ICV1, A, KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_unwrap()
356 if (diff != 0) { in mbedtls_nist_kw_unwrap()
398 diff = mbedtls_ct_memcmp(NIST_KW_ICV2, A, KW_SEMIBLOCK_LENGTH / 2); in mbedtls_nist_kw_unwrap()
400 if (diff != 0) { in mbedtls_nist_kw_unwrap()
418 diff = mbedtls_ct_memcmp_partial( in mbedtls_nist_kw_unwrap()
422 if (diff != 0) { in mbedtls_nist_kw_unwrap()
442 mbedtls_platform_zeroize(&diff, sizeof(diff)); in mbedtls_nist_kw_unwrap()
Dchachapoly.c302 int diff; in mbedtls_chachapoly_auth_decrypt() local
311 diff = mbedtls_ct_memcmp(tag, check_tag, sizeof(check_tag)); in mbedtls_chachapoly_auth_decrypt()
313 if (diff != 0) { in mbedtls_chachapoly_auth_decrypt()
Dconstant_time_impl.h398 const mbedtls_ct_uint_t diff = mbedtls_ct_compiler_opaque(x) ^ mbedtls_ct_compiler_opaque(y); in mbedtls_ct_uint_ne() local
401 return mbedtls_ct_bool(diff); in mbedtls_ct_uint_ne()
Dssl_tls12_server.c3503 mbedtls_ct_condition_t diff; in ssl_parse_encrypted_pms() local
3532 diff = mbedtls_ct_bool(ret); in ssl_parse_encrypted_pms()
3533 diff = mbedtls_ct_bool_or(diff, mbedtls_ct_uint_ne(peer_pmslen, 48)); in ssl_parse_encrypted_pms()
3534 diff = mbedtls_ct_bool_or(diff, mbedtls_ct_uint_ne(peer_pms[0], ver[0])); in ssl_parse_encrypted_pms()
3535 diff = mbedtls_ct_bool_or(diff, mbedtls_ct_uint_ne(peer_pms[1], ver[1])); in ssl_parse_encrypted_pms()
3554 if (diff != MBEDTLS_CT_FALSE) { in ssl_parse_encrypted_pms()
3568 mbedtls_ct_memcpy_if(diff, pms, fake_pms, peer_pms, ssl->handshake->pmslen); in ssl_parse_encrypted_pms()
Dgcm.c593 int diff; in mbedtls_gcm_auth_decrypt() local
602 diff = mbedtls_ct_memcmp(tag, check_tag, tag_len); in mbedtls_gcm_auth_decrypt()
604 if (diff != 0) { in mbedtls_gcm_auth_decrypt()
Dccm.c525 int diff = mbedtls_ct_memcmp(tag1, tag2, tag_len); in mbedtls_ccm_compare_tags() local
527 if (diff != 0) { in mbedtls_ccm_compare_tags()
Dx509_crt.c248 unsigned char diff; in x509_memcasecmp() local
252 diff = n1[i] ^ n2[i]; in x509_memcasecmp()
254 if (diff == 0) { in x509_memcasecmp()
258 if (diff == 32 && in x509_memcasecmp()
/mbedtls-3.6.0/programs/hash/
Dgeneric_sum.c69 char diff; in generic_check() local
123 diff = 0; in generic_check()
125 diff |= line[i] ^ buf[i]; in generic_check()
128 if (diff != 0) { in generic_check()
/mbedtls-3.6.0/3rdparty/p256-m/p256-m/
Dp256-m.c117 uint64_t diff = (uint64_t) x[i] - y[i] - carry; in u256_sub() local
118 z[i] = (uint32_t) diff; in u256_sub()
119 carry = -(uint32_t) (diff >> 32); in u256_sub()
151 uint32_t diff = 0; in u256_diff() local
153 diff |= x[i] ^ y[i]; in u256_diff()
155 return diff; in u256_diff()
166 uint32_t diff = 0; in u256_diff0() local
168 diff |= x[i]; in u256_diff0()
170 return diff; in u256_diff0()
1462 uint32_t diff = u256_diff(u1, r); in p256_ecdsa_verify() local
[all …]
/mbedtls-3.6.0/programs/aes/
Dcrypt_and_hash.c73 unsigned char diff; in main() local
520 diff = 0; in main()
522 diff |= digest[i] ^ buffer[i]; in main()
525 if (diff != 0) { in main()
/mbedtls-3.6.0/docs/architecture/psa-migration/
Dsyms.sh53 diff ${PREF}-defined ${PREF}-unresolved \
Doutcome-analysis.sh114 if diff skipped-ref skipped-new | grep '^> '; then
/mbedtls-3.6.0/tests/suites/
Dtest_suite_constant_time.function293 * \p diff Index of byte that differs (if out of range, the arrays will match).
298 void mbedtls_ct_memcmp_partial(int diff, int size, int skip_head, int skip_tail)
311 if (i == diff) {
/mbedtls-3.6.0/tests/
Dcompat.sh74 if git diff --quiet ../include/mbedtls/mbedtls_config.h 2>/dev/null; then
Dssl-opt.sh54 if git diff --quiet ../include/mbedtls/mbedtls_config.h 2>/dev/null; then
/mbedtls-3.6.0/tests/scripts/
Dall.sh562 if ! git diff --quiet "$CONFIG_H"; then
1021 diff -u ChangeLog ChangeLog.new || true