Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/tests/crypto/secp256r1/src/
Dmain.c36 uint8_t public_key_1[64], public_key_2[64]; in ZTEST_USER() local
43 ret = p256_gen_keypair(private_key_2, public_key_2); in ZTEST_USER()
46 ret = p256_ecdh_shared_secret(secret, private_key_1, public_key_2); in ZTEST_USER()
56 uint8_t public_key_2[65]; in ZTEST_USER() local
72 status = psa_export_public_key(key_id_2, public_key_2, sizeof(public_key_2), in ZTEST_USER()
76 status = psa_raw_key_agreement(PSA_ALG_ECDH, key_id_1, public_key_2, public_key_2_len, in ZTEST_USER()
84 uint8_t public_key_1[64], public_key_2[64]; in ZTEST_USER() local
92 ret = uECC_make_key(public_key_2, private_key_2, &curve_secp256r1); in ZTEST_USER()
95 ret = uECC_valid_public_key(public_key_2, &curve_secp256r1); in ZTEST_USER()
98 ret = uECC_shared_secret(public_key_2, private_key_1, secret, &curve_secp256r1); in ZTEST_USER()