Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/modules/recovery/tests_impl.h
/********************************************************************** | /********************************************************************** | ||||
* Copyright (c) 2013-2015 Pieter Wuille * | * Copyright (c) 2013-2015 Pieter Wuille * | ||||
* Distributed under the MIT software license, see the accompanying * | * Distributed under the MIT software license, see the accompanying * | ||||
* file COPYING or http://www.opensource.org/licenses/mit-license.php.* | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* | ||||
**********************************************************************/ | **********************************************************************/ | ||||
#ifndef _SECP256K1_MODULE_RECOVERY_TESTS_ | #ifndef SECP256K1_MODULE_RECOVERY_TESTS_H | ||||
#define _SECP256K1_MODULE_RECOVERY_TESTS_ | #define SECP256K1_MODULE_RECOVERY_TESTS_H | ||||
static int recovery_test_nonce_function(unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *algo16, void *data, unsigned int counter) { | static int recovery_test_nonce_function(unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *algo16, void *data, unsigned int counter) { | ||||
(void) msg32; | (void) msg32; | ||||
(void) key32; | (void) key32; | ||||
(void) algo16; | (void) algo16; | ||||
(void) data; | (void) data; | ||||
/* On the first run, return 0 to force a second run */ | /* On the first run, return 0 to force a second run */ | ||||
▲ Show 20 Lines • Show All 368 Lines • ▼ Show 20 Lines | for (i = 0; i < count; i++) { | ||||
test_ecdsa_recovery_api(); | test_ecdsa_recovery_api(); | ||||
} | } | ||||
for (i = 0; i < 64*count; i++) { | for (i = 0; i < 64*count; i++) { | ||||
test_ecdsa_recovery_end_to_end(); | test_ecdsa_recovery_end_to_end(); | ||||
} | } | ||||
test_ecdsa_recovery_edge_cases(); | test_ecdsa_recovery_edge_cases(); | ||||
} | } | ||||
#endif | #endif /* SECP256K1_MODULE_RECOVERY_TESTS_H */ |