Added support to show example of max for `eccsiglentest` using `DEBUG_SIG_TEST_MAX`.
parent
20e7712ae8
commit
30081a02ad
|
@ -37,8 +37,9 @@
|
||||||
|
|
||||||
/* optional debugging */
|
/* optional debugging */
|
||||||
//#define DEBUG_SIG_TEST
|
//#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)
|
static void hexdump(const void *buffer, word32 len, byte cols)
|
||||||
{
|
{
|
||||||
word32 i;
|
word32 i;
|
||||||
|
@ -196,7 +197,7 @@ int ecc_sign_verify_test(enum wc_HashType hash_type,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pmaxSigSz && *pmaxSigSz < sigLen) {
|
if (pmaxSigSz && *pmaxSigSz < sigLen) {
|
||||||
#ifdef DEBUG_SIG_TEST
|
#ifdef DEBUG_SIG_TEST_MAX
|
||||||
printf("Curve: Max %d->%d\n", *pmaxSigSz, sigLen);
|
printf("Curve: Max %d->%d\n", *pmaxSigSz, sigLen);
|
||||||
hexdump(sigBuf, sigLen, 16);
|
hexdump(sigBuf, sigLen, 16);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue