ecc_test cleanup
This commit is contained in:
parent
0de6fa3084
commit
ae2ab2083b
@ -259,7 +259,6 @@ typedef enum ecc_signature_type_ {
|
||||
/** the ECC params provided */
|
||||
extern const ltc_ecc_curve ltc_ecc_curves[];
|
||||
|
||||
int ecc_test(void);
|
||||
void ecc_sizes(int *low, int *high);
|
||||
int ecc_get_size(const ecc_key *key);
|
||||
|
||||
|
@ -1,32 +0,0 @@
|
||||
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
|
||||
*
|
||||
* LibTomCrypt is a library that provides various cryptographic
|
||||
* algorithms in a highly modular and flexible manner.
|
||||
*
|
||||
* The library is free for all purposes without any express
|
||||
* guarantee it works.
|
||||
*/
|
||||
|
||||
#include "tomcrypt_private.h"
|
||||
|
||||
/**
|
||||
@file ecc_test.c
|
||||
ECC Crypto, Tom St Denis
|
||||
*/
|
||||
|
||||
#ifdef LTC_MECC
|
||||
|
||||
int ecc_test(void)
|
||||
{
|
||||
/* the main ECC tests are in tests/ecc_test.c
|
||||
* this function is kept just for API compatibility
|
||||
*/
|
||||
return CRYPT_NOP;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* ref: $Format:%D$ */
|
||||
/* git commit: $Format:%H$ */
|
||||
/* commit time: $Format:%ai$ */
|
||||
|
@ -1590,7 +1590,7 @@ static int _ecc_test_recovery(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
int ecc_tests(void)
|
||||
int ecc_test(void)
|
||||
{
|
||||
if (ltc_mp.name == NULL) return CRYPT_NOP;
|
||||
|
||||
|
@ -36,7 +36,7 @@ static const test_function test_functions[] =
|
||||
LTC_TEST_FN(pkcs_1_eme_test),
|
||||
LTC_TEST_FN(rsa_test),
|
||||
LTC_TEST_FN(dh_test),
|
||||
LTC_TEST_FN(ecc_tests),
|
||||
LTC_TEST_FN(ecc_test),
|
||||
LTC_TEST_FN(dsa_test),
|
||||
LTC_TEST_FN(file_test),
|
||||
LTC_TEST_FN(multi_test),
|
||||
|
@ -32,7 +32,7 @@ int store_test(void);
|
||||
int rotate_test(void);
|
||||
int rsa_test(void);
|
||||
int dh_test(void);
|
||||
int ecc_tests(void);
|
||||
int ecc_test(void);
|
||||
int dsa_test(void);
|
||||
int der_test(void);
|
||||
int misc_test(void);
|
||||
|
Loading…
Reference in New Issue
Block a user