Searched refs:PB (Results 1 – 2 of 2) sorted by relevance
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | sm2-pke.c | 309 mbedtls_ecp_point PB = { }; in sm2_mbedtls_pke_encrypt() local 322 mbedtls_ecp_point_init(&PB); in sm2_mbedtls_pke_encrypt() 353 mbedtls_mpi_copy(&PB.X, (mbedtls_mpi *)key->x); in sm2_mbedtls_pke_encrypt() 354 mbedtls_mpi_copy(&PB.Y, (mbedtls_mpi *)key->y); in sm2_mbedtls_pke_encrypt() 355 mbedtls_mpi_lset(&PB.Z, 1); in sm2_mbedtls_pke_encrypt() 357 mres = mbedtls_ecp_mul(&grp, &x2y2p, &k, &PB, mbd_rand, NULL); in sm2_mbedtls_pke_encrypt() 447 mbedtls_ecp_point_free(&PB); in sm2_mbedtls_pke_encrypt()
|
A D | sm2-kep.c | 293 mbedtls_ecp_point PB = { }; in crypto_acipher_sm2_kep_derive() local 323 mbedtls_ecp_point_init(&PB); in crypto_acipher_sm2_kep_derive() 386 mres = mbedtls_mpi_copy(&PB.X, (mbedtls_mpi *)peer_key->x); in crypto_acipher_sm2_kep_derive() 389 mres = mbedtls_mpi_copy(&PB.Y, (mbedtls_mpi *)peer_key->y); in crypto_acipher_sm2_kep_derive() 392 mres = mbedtls_mpi_lset(&PB.Z, 1); in crypto_acipher_sm2_kep_derive() 399 mres = mbedtls_ecp_muladd(&grp, &U, &one, &PB, &x2bar, &RB); in crypto_acipher_sm2_kep_derive() 494 mbedtls_ecp_point_free(&PB); in crypto_acipher_sm2_kep_derive()
|
Completed in 19 milliseconds