Searched refs:TEE_SM3_HASH_SIZE (Results 1 – 8 of 8) sorted by relevance
/optee_os-3.20.0/core/crypto/ |
A D | sm2-kdf.c | 34 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 D | sm3-hash.c | 55 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 D | sm3-hmac.c | 55 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-3.20.0/core/lib/libtomcrypt/ |
A D | sm2-kep.c | 33 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 D | sm2-pke.c | 128 uint8_t u[TEE_SM3_HASH_SIZE] = { }; in sm2_ltc_pke_decrypt() 221 if (src_len <= C1_len + TEE_SM3_HASH_SIZE) { in sm2_ltc_pke_decrypt() 226 C2_len = src_len - C1_len - TEE_SM3_HASH_SIZE; in sm2_ltc_pke_decrypt() 286 if (consttime_memcmp(u, src + C1_len + C2_len, TEE_SM3_HASH_SIZE)) { in sm2_ltc_pke_decrypt() 474 if (*dst_len < C1_len + src_len + TEE_SM3_HASH_SIZE) { in sm2_ltc_pke_encrypt() 475 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_ltc_pke_encrypt() 501 res = crypto_hash_final(ctx, dst + C1_len + src_len, TEE_SM3_HASH_SIZE); in sm2_ltc_pke_encrypt() 505 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_ltc_pke_encrypt()
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | sm2-kep.c | 39 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 D | sm2-pke.c | 127 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-3.20.0/lib/libutee/include/ |
A D | utee_defines.h | 169 TEE_SM3_HASH_SIZE = 32, enumerator 208 return TEE_SM3_HASH_SIZE; in __tee_alg_get_digest_size()
|
Completed in 8 milliseconds