From 4ebb5a9645ccc5ac10815535babb5e8980146b16 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 21 Feb 2019 17:44:11 +1100 Subject: [PATCH] hash/sha3: add stubs --- CMakeLists.txt | 1 + hash/sha3.cpp | 20 ++++++++++++++++++++ hash/sha3.hpp | 24 ++++++++++++++++++++++++ test/hash/sha3.cpp | 1 + 4 files changed, 46 insertions(+) create mode 100644 hash/sha3.cpp create mode 100644 hash/sha3.hpp create mode 100644 test/hash/sha3.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index de88d2e..37c0454 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ list (APPEND components hash/ripemd hash/sha1 hash/sha2 + hash/sha3 hash/tiger hash/pbkdf2 hash/hmac diff --git a/hash/sha3.cpp b/hash/sha3.cpp new file mode 100644 index 0000000..201dfa8 --- /dev/null +++ b/hash/sha3.cpp @@ -0,0 +1,20 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Copyright: + * 2019, Danny Robson + */ + +#include "sha3.hpp" + +using cruft::crypto::hash::sha3; + + +/////////////////////////////////////////////////////////////////////////////// +//sha3::digest_t +//sha3::operator() (cruft::view data) +//{ +// +//} diff --git a/hash/sha3.hpp b/hash/sha3.hpp new file mode 100644 index 0000000..5bda096 --- /dev/null +++ b/hash/sha3.hpp @@ -0,0 +1,24 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Copyright: + * 2019, Danny Robson + */ + +#pragma once + +#include +#include + +#include + + +namespace cruft::crypto::hash { + struct sha3 { + using digest_t = std::array; + + digest_t operator() (cruft::view data); + }; +}; diff --git a/test/hash/sha3.cpp b/test/hash/sha3.cpp new file mode 100644 index 0000000..856cbbb --- /dev/null +++ b/test/hash/sha3.cpp @@ -0,0 +1 @@ +int main () { } \ No newline at end of file