| /optee_os/lib/libutils/ext/include/ |
| H A D | string_ext.h | 25 int consttime_memcmp(const void *p1, const void *p2, size_t nb); 30 return consttime_memcmp(s1, s2, n); in buf_compare_ct()
|
| /optee_os/core/drivers/crypto/se050/adaptors/apis/ |
| H A D | sss.c | 98 if (!consttime_memcmp(new_keys.enc, cur_keys.enc, SE050_SCP03_KEY_SZ) && in se050_rotate_scp03_keys() 99 !consttime_memcmp(new_keys.mac, cur_keys.mac, SE050_SCP03_KEY_SZ) && in se050_rotate_scp03_keys() 100 !consttime_memcmp(new_keys.dek, cur_keys.dek, SE050_SCP03_KEY_SZ)) in se050_rotate_scp03_keys()
|
| /optee_os/lib/libutils/ext/ |
| H A D | consttime_memcmp.c | 36 int consttime_memcmp(const void *p1, const void *p2, size_t nb) { in consttime_memcmp() function
|
| H A D | sub.mk | 9 srcs-y += consttime_memcmp.c
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | x25519.c | 104 !consttime_memcmp(secret, ltc_private_key.pub, in crypto_acipher_x25519_shared_secret()
|
| H A D | hash.c | 184 if (consttime_memcmp(digest, hash, sizeof(digest)) != 0) in hash_sha256_check()
|
| H A D | gcm.c | 199 if (consttime_memcmp(dst_tag, tag, tag_len) != 0) in crypto_aes_gcm_dec_final()
|
| H A D | ccm.c | 210 if (consttime_memcmp(dst_tag, tag, tag_len) != 0) in crypto_aes_ccm_dec_final()
|
| H A D | sm2-kep.c | 372 if (consttime_memcmp(S1, p->conf_in, sizeof(S1))) { in sm2_kep_derive()
|
| H A D | sm2-pke.c | 286 if (consttime_memcmp(u, src + C1_len + C2_len, TEE_SM3_HASH_SIZE)) { in sm2_ltc_pke_decrypt()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | hash.c | 195 if (consttime_memcmp(digest, hash, sizeof(digest))) in hash_sha256_check()
|
| H A D | sm2-pke.c | 253 if (consttime_memcmp(u, src + C1_len + C2_len, TEE_SM3_HASH_SIZE)) { in sm2_mbedtls_pke_decrypt()
|
| H A D | sm2-kep.c | 465 if (consttime_memcmp(S1, p->conf_in, sizeof(S1))) { in crypto_acipher_sm2_kep_derive()
|
| /optee_os/core/pta/ |
| H A D | secstor_ta_mgmt.c | 121 if (consttime_memcmp(buf, SHDR_GET_HASH(shdr), shdr->hash_size)) { in install_ta()
|
| /optee_os/core/drivers/crypto/caam/ae/ |
| H A D | caam_ae_ccm.c | 222 if (consttime_memcmp(dfinal->tag.data, encrypted_tag, in caam_ae_final_ccm()
|
| H A D | caam_ae_gcm.c | 346 if (consttime_memcmp(dfinal->tag.data, in caam_ae_final_gcm()
|
| /optee_os/core/drivers/crypto/stm32/ |
| H A D | authenc.c | 297 if (consttime_memcmp(tag_buf, dfinal->tag.data, dfinal->tag.length)) in stm32_ae_dec_final()
|
| /optee_os/core/crypto/ |
| H A D | aes-gcm.c | 332 if (consttime_memcmp(state->buf_tag, tag, tag_len)) in __gcm_dec_final()
|
| /optee_os/lib/libutee/ |
| H A D | tee_api.c | 622 return consttime_memcmp(buffer1, buffer2, size); in TEE_MemCompare()
|
| H A D | tee_api_operations.c | 1556 if (consttime_memcmp(mac, computed_mac, computed_mac_size) != 0) { in TEE_MACCompareFinal()
|
| /optee_os/ta/pkcs11/src/ |
| H A D | processing_asymm.c | 947 consttime_memcmp(temp_buf, ptr, in_size)) in step_asymm_operation()
|
| /optee_os/core/tee/ |
| H A D | fs_htree.c | 593 consttime_memcmp(digest, node->node.hash, sizeof(digest))) in verify_node()
|
| H A D | tee_rpmb_fs.c | 947 if (consttime_memcmp(rawdata->key_mac, in tee_rpmb_resp_unpack_verify()
|