diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-06-17 22:36:41 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-06-17 22:36:41 -0400 |
commit | 1f06c512c4b6834656729061f1877bea2f90d5f9 (patch) | |
tree | ac74eb28806cd8ea7f07cf21e8b8c91f96a389ff /validat1.cpp | |
parent | f320e7d92a33ee80ae42deef79da78cfc30868af (diff) | |
download | cryptopp-git-1f06c512c4b6834656729061f1877bea2f90d5f9.tar.gz |
Add LEA lightweight block cipher (GH #669)
Diffstat (limited to 'validat1.cpp')
-rw-r--r-- | validat1.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/validat1.cpp b/validat1.cpp index e87b24c2..7a6d60d8 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -42,6 +42,7 @@ #include "shacal2.h"
#include "camellia.h"
#include "aria.h"
+#include "lea.h"
#include "osrng.h"
#include "drbg.h"
#include "rdrand.h"
@@ -170,6 +171,7 @@ bool ValidateAll(bool thorough) pass=ValidateSerpent() && pass;
pass=ValidateSHACAL2() && pass;
pass=ValidateARIA() && pass;
+ pass=ValidateLEA() && pass;
pass=ValidateCamellia() && pass;
pass=ValidateSalsa() && pass;
pass=ValidateSosemanuk() && pass;
@@ -3386,6 +3388,13 @@ bool ValidateARIA() return pass1 && pass2 && pass3;
}
+bool ValidateLEA()
+{
+ std::cout << "\nLEA validation suite running...\n";
+
+ return RunTestDataFile(CRYPTOPP_DATA_DIR "TestVectors/lea.txt");
+}
+
bool ValidateCamellia()
{
std::cout << "\nCamellia validation suite running...\n\n";
|