|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
CMSDK unit test for the vendored hash library: runs md5/sha1/sha256/ crc32/sha3/keccak against known test vectors. More...
#include "hash/HashTest.h"#include "hash/md5.h"#include "hash/sha1.h"#include "hash/sha256.h"#include "hash/crc32.h"#include "hash/sha3.h"#include "hash/keccak.h"#include "PsyTime.h"#include "UnitTestFramework.h"#include <string>#include <cctype>#include <cstring>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | cmlabs |
Functions | |
| static std::string | cmlabs::ToLowerHex (const std::string &s) |
| static bool | cmlabs::CheckHex (const char *algo, const char *input, const std::string &got, const char *expected) |
| bool | cmlabs::Hash_UnitTest () |
| Exercise the hash classes against known test vectors. | |
| void | cmlabs::Register_Hash_Tests () |
CMSDK unit test for the vendored hash library: runs md5/sha1/sha256/ crc32/sha3/keccak against known test vectors.
First-party test code wrapping third-party hashes.
Definition in file HashTest.cpp.