Home
last modified time | relevance | path

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

12

/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_pk.h240 } ecc_key; typedef
258 int ecc_get_size(const ecc_key *key);
261 int ecc_set_curve(const ltc_ecc_curve *cu, ecc_key *key);
262 int ecc_generate_key(prng_state *prng, int wprng, ecc_key *key);
265 int ecc_get_oid_str(char *out, unsigned long *outlen, const ecc_key *key);
267 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key);
269 void ecc_free(ecc_key *key);
284 int ecc_shared_secret(const ecc_key *private_key, const ecc_key *public_key,
290 const ecc_key *key);
294 const ecc_key *key);
[all …]
A Dtomcrypt_private.h283 …d *a, void *b, void *prime, void *order, void *gx, void *gy, unsigned long cofactor, ecc_key *key);
284 int ecc_copy_curve(const ecc_key *srckey, ecc_key *key);
285 int ecc_set_curve_by_size(int size, ecc_key *key);
286 int ecc_import_subject_public_key_info(const unsigned char *in, unsigned long inlen, ecc_key *key);
289 int ecc_ssh_ecdsa_encode_name(char *buffer, unsigned long *buflen, const ecc_key *key);
301 int ltc_ecc_verify_key(const ecc_key *key);
/optee_os-3.20.0/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.c118 static TEE_Result ecc_set_curve_from_name(ecc_key *ltc_key, in ecc_set_curve_from_name()
139 ecc_key ltc_tmp_key; in _ltc_ecc_generate_keypair()
193 TEE_Result ecc_populate_ltc_private_key(ecc_key *ltc_key, in ecc_populate_ltc_private_key()
223 TEE_Result ecc_populate_ltc_public_key(ecc_key *ltc_key, in ecc_populate_ltc_public_key()
257 ecc_key ltc_key = { }; in _ltc_ecc_sign()
297 ecc_key ltc_key = { }; in _ltc_ecc_verify()
327 ecc_key ltc_private_key = { }; in _ltc_ecc_shared_secret()
328 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,
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_make_key.c21 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key) in ecc_make_key()
30 int ecc_make_key_ex(prng_state *prng, int wprng, ecc_key *key, const ltc_ecc_curve *cu) in ecc_make_key_ex()
38 int ecc_generate_key(prng_state *prng, int wprng, ecc_key *key) in ecc_generate_key()
A Decc_ansi_x963_import.c18 int ecc_ansi_x963_import(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_ansi_x963_import()
23 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.c21 int ecc_shared_secret(const ecc_key *private_key, const ecc_key *public_key, in ecc_shared_secret()
A Decc_import_x509.c7 static int s_ecc_import_x509_with_oid(const unsigned char *in, unsigned long inlen, ecc_key *key) in s_ecc_import_x509_with_oid()
33 static int s_ecc_import_x509_with_curve(const unsigned char *in, unsigned long inlen, ecc_key *key) in s_ecc_import_x509_with_curve()
86 int ecc_import_subject_public_key_info(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import_subject_public_key_info()
107 int ecc_import_x509(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import_x509()
A Decc_get_size.c18 int ecc_get_size(const ecc_key *key) in ecc_get_size()
A Decc_ansi_x963_export.c19 int ecc_ansi_x963_export(const ecc_key *key, unsigned char *out, unsigned long *outlen) in ecc_ansi_x963_export()
A Decc_import.c20 int ecc_import(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import()
33 int ecc_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_ecc_curve *… in ecc_import_ex()
A Decc_get_oid_str.c15 int ecc_get_oid_str(char *out, unsigned long *outlen, const ecc_key *key) in ecc_get_oid_str()
A Decc_set_curve_internal.c15 static void s_ecc_oid_lookup(ecc_key *key) in s_ecc_oid_lookup()
39 int ecc_copy_curve(const ecc_key *srckey, ecc_key *key) in ecc_copy_curve()
79 …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.c8 static int s_ecc_import_private_with_oid(const unsigned char *in, unsigned long inlen, ecc_key *key) in s_ecc_import_private_with_oid()
42 static int s_ecc_import_private_with_curve(const unsigned char *in, unsigned long inlen, ecc_key *k… in s_ecc_import_private_with_curve()
102 int ecc_import_openssl(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import_openssl()
A Decc_encrypt_key.c28 const ecc_key *key) in ecc_encrypt_key()
31 ecc_key pubkey; in ecc_encrypt_key()
A Decc_free.c17 void ecc_free(ecc_key *key) in ecc_free()
A Decc_decrypt_key.c24 const ecc_key *key) in ecc_decrypt_key()
30 ecc_key pubkey; in ecc_decrypt_key()
A Decc_set_curve.c8 int ecc_set_curve(const ltc_ecc_curve *cu, ecc_key *key) in ecc_set_curve()
44 int ecc_set_curve_by_size(int size, ecc_key *key) in ecc_set_curve_by_size()
A Decc_ssh_ecdsa_encode_name.c20 int ecc_ssh_ecdsa_encode_name(char *buffer, unsigned long *buflen, const ecc_key *key) in ecc_ssh_ecdsa_encode_name()
A Decc_export.c21 int ecc_export(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key) in ecc_export()
A Decc_get_key.c16 int ecc_get_key(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key) in ecc_get_key()
A Decc_set_key.c8 int ecc_set_key(const unsigned char *in, unsigned long inlen, int type, ecc_key *key) in ecc_set_key()
A Dltc_ecc_verify_key.c16 int ltc_ecc_verify_key(const ecc_key *key) in ltc_ecc_verify_key()
A Decc_sign_hash.c29 int *recid, const ecc_key *key) in ecc_sign_hash_ex()
31 ecc_key pubkey; in ecc_sign_hash_ex()

Completed in 38 milliseconds

12