Added support to show example of max for `eccsiglentest` using `DEBUG_SIG_TEST_MAX`.

pull/137/head
David Garske 2019-04-30 08:48:08 -07:00
parent 20e7712ae8
commit 30081a02ad
1 changed files with 3 additions and 2 deletions

View File

@ -37,8 +37,9 @@
/* optional debugging */
//#define DEBUG_SIG_TEST
//#define DEBUG_SIG_TEST_MAX
#ifdef DEBUG_SIG_TEST
#if defined(DEBUG_SIG_TEST) || defined(DEBUG_SIG_TEST_MAX)
static void hexdump(const void *buffer, word32 len, byte cols)
{
word32 i;
@ -196,7 +197,7 @@ int ecc_sign_verify_test(enum wc_HashType hash_type,
}
if (pmaxSigSz && *pmaxSigSz < sigLen) {
#ifdef DEBUG_SIG_TEST
#ifdef DEBUG_SIG_TEST_MAX
printf("Curve: Max %d->%d\n", *pmaxSigSz, sigLen);
hexdump(sigBuf, sigLen, 16);
#endif