Searched refs:C1_len (Results 1 – 2 of 2) sorted by relevance
117 size_t C1_len = 0; in sm2_mbedtls_pke_decrypt() local188 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() local406 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 …]
116 size_t C1_len = 0; in sm2_ltc_pke_decrypt() local221 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() local469 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