Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/core/
A Dsm2-pke.c115 uint8_t x2y2[64] = { }; in sm2_mbedtls_pke_decrypt() local
173 mres = mbedtls_mpi_write_binary(&x2y2p.X, x2y2, SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_decrypt()
178 mres = mbedtls_mpi_write_binary(&x2y2p.Y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_mbedtls_pke_decrypt()
201 res = sm2_kdf(x2y2, sizeof(x2y2), t, C2_len); in sm2_mbedtls_pke_decrypt()
234 res = crypto_hash_update(ctx, x2y2, SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_decrypt()
245 res = crypto_hash_update(ctx, x2y2 + SM2_INT_SIZE_BYTES, in sm2_mbedtls_pke_decrypt()
311 uint8_t x2y2[64] = { }; in sm2_mbedtls_pke_encrypt() local
369 mres = mbedtls_mpi_write_binary(&x2y2p.X, x2y2, SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_encrypt()
389 res = sm2_kdf(x2y2, sizeof(x2y2), t, src_len); in sm2_mbedtls_pke_encrypt()
428 res = crypto_hash_update(ctx, x2y2, SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_encrypt()
[all …]
/optee_os/core/lib/libtomcrypt/
A Dsm2-pke.c112 uint8_t x2y2[64] = { }; in sm2_ltc_pke_decrypt() local
213 mp_to_unsigned_bin2(x2y2p->x, x2y2, SM2_INT_SIZE_BYTES); in sm2_ltc_pke_decrypt()
214 mp_to_unsigned_bin2(x2y2p->y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_ltc_pke_decrypt()
233 res = sm2_kdf(x2y2, sizeof(x2y2), t, C2_len); in sm2_ltc_pke_decrypt()
266 res = crypto_hash_update(ctx, x2y2, SM2_INT_SIZE_BYTES); in sm2_ltc_pke_decrypt()
277 res = crypto_hash_update(ctx, x2y2 + SM2_INT_SIZE_BYTES, in sm2_ltc_pke_decrypt()
339 uint8_t x2y2[64] = { }; in sm2_ltc_pke_encrypt() local
439 mp_to_unsigned_bin2(x2y2p->x, x2y2, SM2_INT_SIZE_BYTES); in sm2_ltc_pke_encrypt()
440 mp_to_unsigned_bin2(x2y2p->y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_ltc_pke_encrypt()
451 res = sm2_kdf(x2y2, sizeof(x2y2), t, src_len); in sm2_ltc_pke_encrypt()
[all …]

Completed in 6 milliseconds