hash/sha3: add stubs

This commit is contained in:
Danny Robson 2019-02-21 17:44:11 +11:00
parent 1f3721ee15
commit 4ebb5a9645
4 changed files with 46 additions and 0 deletions

View File

@ -13,6 +13,7 @@ list (APPEND components
hash/ripemd
hash/sha1
hash/sha2
hash/sha3
hash/tiger
hash/pbkdf2
hash/hmac

20
hash/sha3.cpp Normal file
View File

@ -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 <danny@nerdcruft.net>
*/
#include "sha3.hpp"
using cruft::crypto::hash::sha3;
///////////////////////////////////////////////////////////////////////////////
//sha3::digest_t
//sha3::operator() (cruft::view<u08 const *> data)
//{
//
//}

24
hash/sha3.hpp Normal file
View File

@ -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 <danny@nerdcruft.net>
*/
#pragma once
#include <cruft/util/std.hpp>
#include <cruft/util/view.hpp>
#include <array>
namespace cruft::crypto::hash {
struct sha3 {
using digest_t = std::array<u08,32>;
digest_t operator() (cruft::view<u08 const *> data);
};
};

1
test/hash/sha3.cpp Normal file
View File

@ -0,0 +1 @@
int main () { }