Add ROCA vulnerability test (RRG repository PR 76 by @merlokk) (#762)
[proxmark3-svn] / client / emv / test / cryptotest.c
index 1d5891fe06cae649f3166b710cdd3642de17ce2c..b0212a70b453fe7d5a478c24eb834ae1c218684d 100644 (file)
@@ -31,6 +31,7 @@
 #include "dda_test.h"
 #include "cda_test.h"
 #include "crypto/libpcrypto.h"
+#include "emv/emv_roca.h"
 
 int ExecuteCryptoTests(bool verbose) {
        int res;
@@ -90,6 +91,9 @@ int ExecuteCryptoTests(bool verbose) {
        res = exec_crypto_test(verbose);
        if (res) TestFail = true;
 
+       res = roca_self_test(verbose);
+       if (res) TestFail = true;
+
        PrintAndLog("\n--------------------------");
        if (TestFail)
                PrintAndLog("Test(s) [ERROR].");
Impressum, Datenschutz