/mbedtls-3.6.0/library/ |
D | constant_time.c | 94 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()
|
D | nist_kw.c | 327 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()
|
D | chachapoly.c | 302 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()
|
D | constant_time_impl.h | 398 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()
|
D | ssl_tls12_server.c | 3503 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()
|
D | gcm.c | 593 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()
|
D | ccm.c | 525 int diff = mbedtls_ct_memcmp(tag1, tag2, tag_len); in mbedtls_ccm_compare_tags() local 527 if (diff != 0) { in mbedtls_ccm_compare_tags()
|
D | x509_crt.c | 248 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/ |
D | generic_sum.c | 69 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/ |
D | p256-m.c | 117 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/ |
D | crypt_and_hash.c | 73 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/ |
D | syms.sh | 53 diff ${PREF}-defined ${PREF}-unresolved \
|
D | outcome-analysis.sh | 114 if diff skipped-ref skipped-new | grep '^> '; then
|
/mbedtls-3.6.0/tests/suites/ |
D | test_suite_constant_time.function | 293 * \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/ |
D | compat.sh | 74 if git diff --quiet ../include/mbedtls/mbedtls_config.h 2>/dev/null; then
|
D | ssl-opt.sh | 54 if git diff --quiet ../include/mbedtls/mbedtls_config.h 2>/dev/null; then
|
/mbedtls-3.6.0/tests/scripts/ |
D | all.sh | 562 if ! git diff --quiet "$CONFIG_H"; then 1021 diff -u ChangeLog ChangeLog.new || true
|