Home
last modified time | relevance | path

Searched refs:consttime_memcmp (Results 1 – 23 of 23) sorted by relevance

/optee_os/lib/libutils/ext/include/
H A Dstring_ext.h25 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 Dsss.c98 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 Dconsttime_memcmp.c36 int consttime_memcmp(const void *p1, const void *p2, size_t nb) { in consttime_memcmp() function
H A Dsub.mk9 srcs-y += consttime_memcmp.c
/optee_os/core/lib/libtomcrypt/
H A Dx25519.c104 !consttime_memcmp(secret, ltc_private_key.pub, in crypto_acipher_x25519_shared_secret()
H A Dhash.c184 if (consttime_memcmp(digest, hash, sizeof(digest)) != 0) in hash_sha256_check()
H A Dgcm.c199 if (consttime_memcmp(dst_tag, tag, tag_len) != 0) in crypto_aes_gcm_dec_final()
H A Dccm.c210 if (consttime_memcmp(dst_tag, tag, tag_len) != 0) in crypto_aes_ccm_dec_final()
H A Dsm2-kep.c372 if (consttime_memcmp(S1, p->conf_in, sizeof(S1))) { in sm2_kep_derive()
H A Dsm2-pke.c286 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 Dhash.c195 if (consttime_memcmp(digest, hash, sizeof(digest))) in hash_sha256_check()
H A Dsm2-pke.c253 if (consttime_memcmp(u, src + C1_len + C2_len, TEE_SM3_HASH_SIZE)) { in sm2_mbedtls_pke_decrypt()
H A Dsm2-kep.c465 if (consttime_memcmp(S1, p->conf_in, sizeof(S1))) { in crypto_acipher_sm2_kep_derive()
/optee_os/core/pta/
H A Dsecstor_ta_mgmt.c121 if (consttime_memcmp(buf, SHDR_GET_HASH(shdr), shdr->hash_size)) { in install_ta()
/optee_os/core/drivers/crypto/caam/ae/
H A Dcaam_ae_ccm.c222 if (consttime_memcmp(dfinal->tag.data, encrypted_tag, in caam_ae_final_ccm()
H A Dcaam_ae_gcm.c346 if (consttime_memcmp(dfinal->tag.data, in caam_ae_final_gcm()
/optee_os/core/drivers/crypto/stm32/
H A Dauthenc.c297 if (consttime_memcmp(tag_buf, dfinal->tag.data, dfinal->tag.length)) in stm32_ae_dec_final()
/optee_os/core/crypto/
H A Daes-gcm.c332 if (consttime_memcmp(state->buf_tag, tag, tag_len)) in __gcm_dec_final()
/optee_os/lib/libutee/
H A Dtee_api.c622 return consttime_memcmp(buffer1, buffer2, size); in TEE_MemCompare()
H A Dtee_api_operations.c1556 if (consttime_memcmp(mac, computed_mac, computed_mac_size) != 0) { in TEE_MACCompareFinal()
/optee_os/ta/pkcs11/src/
H A Dprocessing_asymm.c947 consttime_memcmp(temp_buf, ptr, in_size)) in step_asymm_operation()
/optee_os/core/tee/
H A Dfs_htree.c593 consttime_memcmp(digest, node->node.hash, sizeof(digest))) in verify_node()
H A Dtee_rpmb_fs.c947 if (consttime_memcmp(rawdata->key_mac, in tee_rpmb_resp_unpack_verify()