Searched refs:cu (Results 1 – 6 of 6) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_set_curve.c | 13 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 D | ecc_ansi_x963_import.c | 23 …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 D | ecc_find_curve.c | 214 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 = <c_ecc_curves[i]; in ecc_find_curve()
|
A D | ecc_import.c | 33 … 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 D | ecc_make_key.c | 30 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 D | tomcrypt_pk.h | 260 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