Home
last modified time | relevance | path

Searched refs:C1_len (Results 1 – 2 of 2) sorted by relevance

/optee_os-3.20.0/lib/libmbedtls/core/
A Dsm2-pke.c117 size_t C1_len = 0; in sm2_mbedtls_pke_decrypt() local
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()
214 dst[i] = src[C1_len + i] ^ t[i]; in sm2_mbedtls_pke_decrypt()
223 eom[i - out_len] = src[C1_len + i] ^ t[i]; in sm2_mbedtls_pke_decrypt()
315 size_t C1_len = 0; in sm2_mbedtls_pke_encrypt() local
406 C1_len = *dst_len; in sm2_mbedtls_pke_encrypt()
407 res = sm2_point_to_bytes(dst, &C1_len, &C1); in sm2_mbedtls_pke_encrypt()
412 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_mbedtls_pke_encrypt()
419 dst[i + C1_len] = src[i] ^ t[i]; in sm2_mbedtls_pke_encrypt()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsm2-pke.c116 size_t C1_len = 0; in sm2_ltc_pke_decrypt() local
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()
247 dst[i] = src[C1_len + i] ^ t[i]; in sm2_ltc_pke_decrypt()
256 eom[i - out_len] = src[C1_len + i] ^ t[i]; in sm2_ltc_pke_decrypt()
346 size_t C1_len = 0; in sm2_ltc_pke_encrypt() local
469 C1_len = *dst_len; in sm2_ltc_pke_encrypt()
470 res = sm2_point_to_bytes(dst, &C1_len, C1); in sm2_ltc_pke_encrypt()
475 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_ltc_pke_encrypt()
482 dst[i + C1_len] = src[i] ^ t[i]; in sm2_ltc_pke_encrypt()
[all …]

Completed in 3 milliseconds