Add ROCA vulnerability test (RRG repository PR 76 by @merlokk) (#762)

This commit is contained in:
pwpiwi 2019-01-21 19:26:54 +01:00 committed by GitHub
commit 1511ea28a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 491 additions and 49 deletions

View 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].");