diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-02 00:30:54 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-02 00:30:54 +0200 |
commit | 989c9309ec7e605784329b4e0544dcddfa3f54dd (patch) | |
tree | d731581134698aa4882520294e0650f3c9463ce0 | |
parent | Merge pull request #2963 (diff) | |
parent | tests: remove unused/unfinished keccak bits (diff) | |
download | monero-989c9309ec7e605784329b4e0544dcddfa3f54dd.tar.xz |
Merge pull request #2964
3ed1a74c tests: remove unused/unfinished keccak bits (moneromooo-monero)
-rw-r--r-- | tests/unit_tests/crypto.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/unit_tests/crypto.cpp b/tests/unit_tests/crypto.cpp index d9a7b8ad5..3a8e787ec 100644 --- a/tests/unit_tests/crypto.cpp +++ b/tests/unit_tests/crypto.cpp @@ -47,14 +47,6 @@ namespace "8b655970153799af2aeadc9ff1add0ea6c7251d54154cfa92c173a0dd39c1f94" "6c7251d54154cfa92c173a0dd39c1f948b655970153799af2aeadc9ff1add0ea"; - static std::uint8_t md[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00 - }; - template<typename T> bool is_formatted() { @@ -69,22 +61,6 @@ namespace out << "BEGIN" << value << "END"; return out.str() == "BEGIN<" + std::string{expected, sizeof(T) * 2} + ">END"; } - - bool keccak_harness() - { - size_t inlen = sizeof(source); - int mdlen = (int)sizeof(md); - keccak(source, inlen, md, mdlen); - - if (md[0] != 0x00) - { - return true; - } - else - { - return false; - } - } } TEST(Crypto, Ostream) |