Home
last modified time | relevance | path

Searched refs:peer_eph_key (Results 1 – 5 of 5) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsm2-kep.c204 ecc_key *peer_key, ecc_key *peer_eph_key, in sm2_kep_derive() argument
214 peer_eph_key; in sm2_kep_derive()
215 ecc_key *responder_eph_key = p->is_initiator ? peer_eph_key : in sm2_kep_derive()
271 ltc_res = ltc_ecc_is_point(&peer_eph_key->dp, peer_eph_key->pubkey.x, in sm2_kep_derive()
272 peer_eph_key->pubkey.y); in sm2_kep_derive()
278 mp_to_unsigned_bin2(peer_eph_key->pubkey.x, tmp, SM2_INT_SIZE_BYTES); in sm2_kep_derive()
302 ltc_res = ltc_ecc_mul2add(&peer_key->pubkey, one, &peer_eph_key->pubkey, in sm2_kep_derive()
406 struct ecc_public_key *peer_eph_key, in crypto_acipher_sm2_kep_derive() argument
430 res = ecc_populate_ltc_public_key(&ltc_peer_eph_key, peer_eph_key, in crypto_acipher_sm2_kep_derive()
/optee_os-3.20.0/lib/libmbedtls/core/
A Dsm2-kep.c277 struct ecc_public_key *peer_eph_key, in crypto_acipher_sm2_kep_derive() argument
306 extract_xy_from_public_key(&responder_eph_key, peer_eph_key); in crypto_acipher_sm2_kep_derive()
310 extract_xy_from_public_key(&initiator_eph_key, peer_eph_key); in crypto_acipher_sm2_kep_derive()
365 mbedtls_mpi_copy(&RB.X, (mbedtls_mpi *)peer_eph_key->x); in crypto_acipher_sm2_kep_derive()
366 mbedtls_mpi_copy(&RB.Y, (mbedtls_mpi *)peer_eph_key->y); in crypto_acipher_sm2_kep_derive()
374 mres = mbedtls_mpi_write_binary((mbedtls_mpi *)peer_eph_key->x, tmp, in crypto_acipher_sm2_kep_derive()
/optee_os-3.20.0/core/tee/
A Dtee_svc_cryp.c3257 struct ecc_public_key *peer_eph_key, in get_sm2_kep_params() argument
3282 res = crypto_acipher_alloc_ecc_public_key(peer_eph_key, in get_sm2_kep_params()
3289 peer_eph_key->curve = TEE_ECC_CURVE_SM2; in get_sm2_kep_params()
3315 peer_eph_key->x); in get_sm2_kep_params()
3322 peer_eph_key->y); in get_sm2_kep_params()
3357 crypto_acipher_free_ecc_public_key(peer_eph_key); in get_sm2_kep_params()
3601 struct ecc_public_key peer_eph_key = { }; in syscall_cryp_derive_key() local
3614 &peer_eph_key, &kep_parms); in syscall_cryp_derive_key()
3623 &peer_key, &peer_eph_key, in syscall_cryp_derive_key()
3632 crypto_acipher_free_ecc_public_key(&peer_eph_key); in syscall_cryp_derive_key()
/optee_os-3.20.0/core/include/crypto/
A Dcrypto.h313 struct ecc_public_key *peer_eph_key,
/optee_os-3.20.0/core/crypto/
A Dcrypto.c798 struct ecc_public_key *peer_eph_key in crypto_acipher_sm2_kep_derive()

Completed in 14 milliseconds