Added comment about why 0's test is disabled. ECC without Shamir fails with fast or normal math.

This commit is contained in:
David Garske
2016-07-19 19:12:45 -07:00
parent 5e2502fa95
commit e0f2bbd1b4

View File

@@ -6822,7 +6822,7 @@ static int ecc_test_curve_size(WC_RNG* rng, int keySize, int testVerifyCount,
#endif /* HAVE_ECC_KEY_EXPORT */
#ifdef HAVE_ECC_SIGN
#ifdef ECC_SHAMIR
#ifdef ECC_SHAMIR /* ECC w/out Shamir has issue with all 0 digest */
/* test DSA sign hash with zeros */
for (i = 0; i < (int)sizeof(digest); i++) {
digest[i] = 0;