Fix test.cpp
parent
651401f4d0
commit
a39ca6f0e7
22
test.cpp
22
test.cpp
|
|
@ -31,8 +31,6 @@
|
||||||
#include "validate.h"
|
#include "validate.h"
|
||||||
#include "bench.h"
|
#include "bench.h"
|
||||||
|
|
||||||
#include "shake.h"
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
|
@ -187,26 +185,6 @@ int scoped_main(int argc, char *argv[])
|
||||||
cipher.SetKeyWithIV((byte *)s_globalSeed.data(), 16, (byte *)s_globalSeed.data());
|
cipher.SetKeyWithIV((byte *)s_globalSeed.data(), 16, (byte *)s_globalSeed.data());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{
|
|
||||||
SHAKE128 hash;
|
|
||||||
byte digest[32];
|
|
||||||
hash.Final(digest);
|
|
||||||
|
|
||||||
std::cout << "SHAKE128 Digest:\n";
|
|
||||||
StringSource(digest, sizeof(digest), true, new HexEncoder(new FileSink(std::cout)));
|
|
||||||
std::cout << "\n" << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
SHAKE256 hash;
|
|
||||||
byte digest[64];
|
|
||||||
hash.Final(digest);
|
|
||||||
|
|
||||||
std::cout << "SHAKE256 Digest:\n";
|
|
||||||
StringSource(digest, sizeof(digest), true, new HexEncoder(new FileSink(std::cout)));
|
|
||||||
std::cout << "\n" << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string command, executableName, macFilename;
|
std::string command, executableName, macFilename;
|
||||||
|
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue