Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_set_curve.c13 LTC_ARGCHK(cu != NULL); in ecc_set_curve()
31 key->dp.cofactor = cu->cofactor; in ecc_set_curve()
46 const ltc_ecc_curve *cu = NULL; in ecc_set_curve_by_size() local
51 err = ecc_find_curve("SECP112R1", &cu); in ecc_set_curve_by_size()
54 err = ecc_find_curve("SECP128R1", &cu); in ecc_set_curve_by_size()
57 err = ecc_find_curve("SECP160R1", &cu); in ecc_set_curve_by_size()
60 err = ecc_find_curve("SECP192R1", &cu); in ecc_set_curve_by_size()
63 err = ecc_find_curve("SECP224R1", &cu); in ecc_set_curve_by_size()
66 err = ecc_find_curve("SECP256R1", &cu); in ecc_set_curve_by_size()
69 err = ecc_find_curve("SECP384R1", &cu); in ecc_set_curve_by_size()
[all …]
A Decc_ansi_x963_import.c23 …x963_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_ecc_curve *cu) in ecc_ansi_x963_import_ex() argument
36 if (cu == NULL) { in ecc_ansi_x963_import_ex()
42 if ((err = ecc_set_curve(cu, key)) != CRYPT_OK) { return err; } in ecc_ansi_x963_import_ex()
A Decc_find_curve.c214 int ecc_find_curve(const char *name_or_oid, const ltc_ecc_curve **cu) in ecc_find_curve() argument
219 LTC_ARGCHK(cu != NULL); in ecc_find_curve()
222 *cu = NULL; in ecc_find_curve()
238 *cu = &ltc_ecc_curves[i]; in ecc_find_curve()
A Decc_import.c33 … ecc_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_ecc_curve *cu) in ecc_import_ex() argument
52 if (cu == NULL) { in ecc_import_ex()
55 if ((err = ecc_set_curve(cu, key)) != CRYPT_OK) { goto done; } in ecc_import_ex()
A Decc_make_key.c30 int ecc_make_key_ex(prng_state *prng, int wprng, ecc_key *key, const ltc_ecc_curve *cu) in ecc_make_key_ex() argument
33 if ((err = ecc_set_curve(cu, key)) != CRYPT_OK) { return err; } in ecc_make_key_ex()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_pk.h260 int ecc_find_curve(const char* name_or_oid, const ltc_ecc_curve** cu);
261 int ecc_set_curve(const ltc_ecc_curve *cu, ecc_key *key);
268 int ecc_make_key_ex(prng_state *prng, int wprng, ecc_key *key, const ltc_ecc_curve *cu);
273 …ecc_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_ecc_curve *cu);
277 …963_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_ecc_curve *cu);

Completed in 7 milliseconds