summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-12-24 04:56:34 -0500
committerJeffrey Walton <noloader@gmail.com>2016-12-24 04:56:34 -0500
commit7031fc7f6fb3c96ced8a1e86391d9bef2c007518 (patch)
treecfc996307b7b2aeffd728b371df5ac068a217876 /test.cpp
parentb19332a69fbd7b82f0e08c18f55a6880487d55e9 (diff)
downloadcryptopp-git-7031fc7f6fb3c96ced8a1e86391d9bef2c007518.tar.gz
Add test cases for ASN.1 parsing (Issue 346)
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test.cpp b/test.cpp
index a596f0a1..76ab115b 100644
--- a/test.cpp
+++ b/test.cpp
@@ -973,6 +973,20 @@ bool Validate(int alg, bool thorough, const char *seedInput)
case 74: result = ValidateBLAKE2b(); break;
case 75: result = ValidatePoly1305(); break;
case 76: result = ValidateSipHash(); break;
+
+#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS)
+ // http://github.com/weidai11/cryptopp/issues/92
+ case 9999: result = TestSecBlock(); break;
+ // http://github.com/weidai11/cryptopp/issues/64
+ case 9998: result = TestPolynomialMod2(); break;
+ // http://github.com/weidai11/cryptopp/issues/336
+ case 9997: result = TestIntegerBitops(); break;
+ // http://github.com/weidai11/cryptopp/issues/242
+ case 9996: result = TestHuffmanCodes(); break;
+ // http://github.com/weidai11/cryptopp/issues/346
+ case 9995: result = TestASN1Parse(); break;
+#endif
+
default: return false;
}