Home
last modified time | relevance | path

Searched refs:TEE_SM3_HASH_SIZE (Results 1 – 12 of 12) sorted by relevance

/optee_os/core/crypto/
A Dsm2-kdf.c34 uint8_t tmp[TEE_SM3_HASH_SIZE] = { }; in sm2_kdf()
37 if (remain >= TEE_SM3_HASH_SIZE) in sm2_kdf()
53 res = crypto_hash_final(ctx, buf, TEE_SM3_HASH_SIZE); in sm2_kdf()
57 if (remain < TEE_SM3_HASH_SIZE) { in sm2_kdf()
62 out += TEE_SM3_HASH_SIZE; in sm2_kdf()
63 remain -= TEE_SM3_HASH_SIZE; in sm2_kdf()
A Dsm3-hash.c55 size_t hash_size = TEE_SM3_HASH_SIZE; in op_sm3_hash_final()
56 uint8_t block_digest[TEE_SM3_HASH_SIZE] = { 0 }; in op_sm3_hash_final()
A Dsm3-hmac.c55 size_t hmac_size = TEE_SM3_HASH_SIZE; in op_sm3_hmac_final()
56 uint8_t block_digest[TEE_SM3_HASH_SIZE] = { 0 }; in op_sm3_hmac_final()
/optee_os/core/lib/libtomcrypt/
A Dsm2-kep.c33 if (Zlen < TEE_SM3_HASH_SIZE) in sm2_kep_compute_Z()
89 res = crypto_hash_final(ctx, Z, TEE_SM3_HASH_SIZE); in sm2_kep_compute_Z()
108 uint8_t hash[TEE_SM3_HASH_SIZE] = { }; in sm2_kep_compute_S()
113 if (S_len < TEE_SM3_HASH_SIZE) in sm2_kep_compute_S()
191 res = crypto_hash_final(ctx, S, TEE_SM3_HASH_SIZE); in sm2_kep_compute_S()
338 TEE_SM3_HASH_SIZE, p->initiator_id, in sm2_kep_derive()
345 TEE_SM3_HASH_SIZE, in sm2_kep_derive()
346 TEE_SM3_HASH_SIZE, p->responder_id, in sm2_kep_derive()
358 uint8_t S1[TEE_SM3_HASH_SIZE]; in sm2_kep_derive()
361 if (p->conf_in_len < TEE_SM3_HASH_SIZE) { in sm2_kep_derive()
[all …]
A Dsm2-pke.c127 uint8_t u[TEE_SM3_HASH_SIZE] = { }; in sm2_ltc_pke_decrypt()
220 if (src_len <= C1_len + TEE_SM3_HASH_SIZE) { in sm2_ltc_pke_decrypt()
225 C2_len = src_len - C1_len - TEE_SM3_HASH_SIZE; in sm2_ltc_pke_decrypt()
285 if (consttime_memcmp(u, src + C1_len + C2_len, TEE_SM3_HASH_SIZE)) { in sm2_ltc_pke_decrypt()
473 if (*dst_len < C1_len + src_len + TEE_SM3_HASH_SIZE) { in sm2_ltc_pke_encrypt()
474 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_ltc_pke_encrypt()
500 res = crypto_hash_final(ctx, dst + C1_len + src_len, TEE_SM3_HASH_SIZE); in sm2_ltc_pke_encrypt()
504 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_ltc_pke_encrypt()
/optee_os/lib/libmbedtls/core/
A Dsm2-kep.c39 if (Zlen < TEE_SM3_HASH_SIZE) in sm2_kep_compute_Z()
119 res = crypto_hash_final(ctx, Z, TEE_SM3_HASH_SIZE); in sm2_kep_compute_Z()
139 uint8_t hash[TEE_SM3_HASH_SIZE] = { }; in sm2_kep_compute_S()
145 if (S_len < TEE_SM3_HASH_SIZE) in sm2_kep_compute_S()
247 res = crypto_hash_final(ctx, S, TEE_SM3_HASH_SIZE); in sm2_kep_compute_S()
431 TEE_SM3_HASH_SIZE, p->initiator_id, in crypto_acipher_sm2_kep_derive()
438 TEE_SM3_HASH_SIZE, in crypto_acipher_sm2_kep_derive()
439 TEE_SM3_HASH_SIZE, p->responder_id, in crypto_acipher_sm2_kep_derive()
451 uint8_t S1[TEE_SM3_HASH_SIZE] = { }; in crypto_acipher_sm2_kep_derive()
454 if (p->conf_in_len < TEE_SM3_HASH_SIZE) { in crypto_acipher_sm2_kep_derive()
[all …]
A Dsm2-pke.c127 uint8_t u[TEE_SM3_HASH_SIZE] = { }; in sm2_mbedtls_pke_decrypt()
188 if (src_len <= C1_len + TEE_SM3_HASH_SIZE) { in sm2_mbedtls_pke_decrypt()
193 C2_len = src_len - C1_len - TEE_SM3_HASH_SIZE; in sm2_mbedtls_pke_decrypt()
253 if (consttime_memcmp(u, src + C1_len + C2_len, TEE_SM3_HASH_SIZE)) { in sm2_mbedtls_pke_decrypt()
411 if (*dst_len < C1_len + src_len + TEE_SM3_HASH_SIZE) { in sm2_mbedtls_pke_encrypt()
412 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_mbedtls_pke_encrypt()
438 res = crypto_hash_final(ctx, dst + C1_len + src_len, TEE_SM3_HASH_SIZE); in sm2_mbedtls_pke_encrypt()
442 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_mbedtls_pke_encrypt()
/optee_os/out/arm/export-ta_arm64/host_include/
A Dutee_defines.h161 TEE_SM3_HASH_SIZE = 32, enumerator
200 return TEE_SM3_HASH_SIZE; in __tee_alg_get_digest_size()
/optee_os/out/arm/export-ta_arm64/include/
A Dutee_defines.h161 TEE_SM3_HASH_SIZE = 32, enumerator
200 return TEE_SM3_HASH_SIZE; in __tee_alg_get_digest_size()
/optee_os/lib/libutee/include/
A Dutee_defines.h161 TEE_SM3_HASH_SIZE = 32, enumerator
200 return TEE_SM3_HASH_SIZE; in __tee_alg_get_digest_size()
/optee_os/out/arm/export-ta_arm32/host_include/
A Dutee_defines.h161 TEE_SM3_HASH_SIZE = 32, enumerator
200 return TEE_SM3_HASH_SIZE; in __tee_alg_get_digest_size()
/optee_os/out/arm/export-ta_arm32/include/
A Dutee_defines.h161 TEE_SM3_HASH_SIZE = 32, enumerator
200 return TEE_SM3_HASH_SIZE; in __tee_alg_get_digest_size()

Completed in 13 milliseconds