Home
last modified time | relevance | path

Searched refs:ecc_key (Results 1 – 25 of 32) sorted by relevance

12

/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_pk.h247 } ecc_key; typedef
265 int ecc_get_size(const ecc_key *key);
268 int ecc_set_curve(const ltc_ecc_curve *cu, ecc_key *key);
269 int ecc_generate_key(prng_state *prng, int wprng, ecc_key *key);
272 int ecc_get_oid_str(char *out, unsigned long *outlen, const ecc_key *key);
274 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key);
276 void ecc_free(ecc_key *key);
291 int ecc_shared_secret(const ecc_key *private_key, const ecc_key *public_key,
297 const ecc_key *key);
301 const ecc_key *key);
[all …]
A Dtomcrypt_private.h255 …d *a, void *b, void *prime, void *order, void *gx, void *gy, unsigned long cofactor, ecc_key *key);
256 int ecc_copy_curve(const ecc_key *srckey, ecc_key *key);
257 int ecc_set_curve_by_size(int size, ecc_key *key);
258 int ecc_import_subject_public_key_info(const unsigned char *in, unsigned long inlen, ecc_key *key);
261 int ecc_ssh_ecdsa_encode_name(char *buffer, unsigned long *buflen, const ecc_key *key);
273 int ltc_ecc_verify_key(const ecc_key *key);
/optee_os/core/lib/libtomcrypt/
A Dsm2-kep.c26 size_t idlen, const ecc_key *key) in sm2_kep_compute_Z()
105 size_t ZAZB_len, ecc_key *initiator_eph_key, in sm2_kep_compute_S()
106 ecc_key *responder_eph_key) in sm2_kep_compute_S()
203 static TEE_Result sm2_kep_derive(ecc_key *my_key, ecc_key *my_eph_key, in sm2_kep_derive()
204 ecc_key *peer_key, ecc_key *peer_eph_key, in sm2_kep_derive()
213 ecc_key *initiator_eph_key = p->is_initiator ? my_eph_key : in sm2_kep_derive()
215 ecc_key *responder_eph_key = p->is_initiator ? peer_eph_key : in sm2_kep_derive()
410 ecc_key ltc_my_key = { }; in crypto_acipher_sm2_kep_derive()
411 ecc_key ltc_my_eph_key = { }; in crypto_acipher_sm2_kep_derive()
412 ecc_key ltc_peer_key = { }; in crypto_acipher_sm2_kep_derive()
[all …]
A Decc.c121 ecc_key ltc_tmp_key; in _ltc_ecc_generate_keypair()
167 static TEE_Result ecc_set_curve_from_name(ecc_key *ltc_key, in ecc_set_curve_from_name()
188 TEE_Result ecc_populate_ltc_private_key(ecc_key *ltc_key, in ecc_populate_ltc_private_key()
218 TEE_Result ecc_populate_ltc_public_key(ecc_key *ltc_key, in ecc_populate_ltc_public_key()
252 ecc_key ltc_key = { }; in _ltc_ecc_sign()
292 ecc_key ltc_key = { }; in _ltc_ecc_verify()
322 ecc_key ltc_private_key = { }; in _ltc_ecc_shared_secret()
323 ecc_key ltc_public_key = { }; in _ltc_ecc_shared_secret()
A Dacipher_helpers.h39 TEE_Result ecc_populate_ltc_private_key(ecc_key *ltc_key,
42 TEE_Result ecc_populate_ltc_public_key(ecc_key *ltc_key,
A Dsm2-dsa.c27 ecc_key ltc_key = { }; in sm2_ltc_dsa_sign()
144 ecc_key ltc_key = { }; in sm2_ltc_dsa_verify()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_make_key.c28 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key) in ecc_make_key()
37 int ecc_make_key_ex(prng_state *prng, int wprng, ecc_key *key, const ltc_ecc_curve *cu) in ecc_make_key_ex()
45 int ecc_generate_key(prng_state *prng, int wprng, ecc_key *key) in ecc_generate_key()
A Decc_import_x509.c14 static int _ecc_import_x509_with_oid(const unsigned char *in, unsigned long inlen, ecc_key *key) in _ecc_import_x509_with_oid()
40 static int _ecc_import_x509_with_curve(const unsigned char *in, unsigned long inlen, ecc_key *key) in _ecc_import_x509_with_curve()
93 int ecc_import_subject_public_key_info(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import_subject_public_key_info()
114 int ecc_import_x509(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import_x509()
A Decc_ansi_x963_import.c25 int ecc_ansi_x963_import(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_ansi_x963_import()
30 int ecc_ansi_x963_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_e… in ecc_ansi_x963_import_ex()
A Decc_shared_secret.c28 int ecc_shared_secret(const ecc_key *private_key, const ecc_key *public_key, in ecc_shared_secret()
A Decc_set_curve_internal.c22 static void _ecc_oid_lookup(ecc_key *key) in _ecc_oid_lookup()
46 int ecc_copy_curve(const ecc_key *srckey, ecc_key *key) in ecc_copy_curve()
86 …id *a, void *b, void *prime, void *order, void *gx, void *gy, unsigned long cofactor, ecc_key *key) in ecc_set_curve_from_mpis()
A Decc_import_openssl.c15 static int _ecc_import_private_with_oid(const unsigned char *in, unsigned long inlen, ecc_key *key) in _ecc_import_private_with_oid()
49 static int _ecc_import_private_with_curve(const unsigned char *in, unsigned long inlen, ecc_key *ke… in _ecc_import_private_with_curve()
109 int ecc_import_openssl(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import_openssl()
A Decc_import.c27 int ecc_import(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import()
40 int ecc_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_ecc_curve *… in ecc_import_ex()
A Decc_encrypt_key.c35 const ecc_key *key) in ecc_encrypt_key()
38 ecc_key pubkey; in ecc_encrypt_key()
A Decc_decrypt_key.c31 const ecc_key *key) in ecc_decrypt_key()
37 ecc_key pubkey; in ecc_decrypt_key()
A Decc_set_curve.c15 int ecc_set_curve(const ltc_ecc_curve *cu, ecc_key *key) in ecc_set_curve()
51 int ecc_set_curve_by_size(int size, ecc_key *key) in ecc_set_curve_by_size()
A Decc_get_size.c25 int ecc_get_size(const ecc_key *key) in ecc_get_size()
A Decc_ansi_x963_export.c26 int ecc_ansi_x963_export(const ecc_key *key, unsigned char *out, unsigned long *outlen) in ecc_ansi_x963_export()
A Decc_get_oid_str.c22 int ecc_get_oid_str(char *out, unsigned long *outlen, const ecc_key *key) in ecc_get_oid_str()
A Decc_free.c24 void ecc_free(ecc_key *key) in ecc_free()
A Decc_ssh_ecdsa_encode_name.c25 int ecc_ssh_ecdsa_encode_name(char *buffer, unsigned long *buflen, const ecc_key *key) in ecc_ssh_ecdsa_encode_name()
A Decc_export.c28 int ecc_export(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key) in ecc_export()
A Decc_get_key.c23 int ecc_get_key(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key) in ecc_get_key()
A Decc_sign_hash.c36 int *recid, const ecc_key *key) in ecc_sign_hash_ex()
38 ecc_key pubkey; in ecc_sign_hash_ex()
A Decc_set_key.c15 int ecc_set_key(const unsigned char *in, unsigned long inlen, int type, ecc_key *key) in ecc_set_key()

Completed in 25 milliseconds

12