Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/
H A Dx25519.c78 curve25519_key ltc_public_key = { in crypto_acipher_x25519_shared_secret() local
86 static_assert(sizeof(ltc_public_key.pub) == X25519_KEY_SIZE_BYTES && in crypto_acipher_x25519_shared_secret()
87 sizeof(ltc_public_key.priv) == X25519_KEY_SIZE_BYTES); in crypto_acipher_x25519_shared_secret()
89 memcpy(ltc_public_key.pub, public_key, X25519_KEY_SIZE_BYTES); in crypto_acipher_x25519_shared_secret()
92 if (x25519_shared_secret(&ltc_private_key, &ltc_public_key, in crypto_acipher_x25519_shared_secret()
H A Decc.c323 ecc_key ltc_public_key = { }; in _ltc_ecc_shared_secret() local
334 res = ecc_populate_ltc_public_key(&ltc_public_key, public_key, in _ltc_ecc_shared_secret()
339 ltc_res = ecc_shared_secret(&ltc_private_key, &ltc_public_key, in _ltc_ecc_shared_secret()
348 ecc_free(&ltc_public_key); in _ltc_ecc_shared_secret()