hash/sha3: add stubs
This commit is contained in:
parent
1f3721ee15
commit
4ebb5a9645
@ -13,6 +13,7 @@ list (APPEND components
|
|||||||
hash/ripemd
|
hash/ripemd
|
||||||
hash/sha1
|
hash/sha1
|
||||||
hash/sha2
|
hash/sha2
|
||||||
|
hash/sha3
|
||||||
hash/tiger
|
hash/tiger
|
||||||
hash/pbkdf2
|
hash/pbkdf2
|
||||||
hash/hmac
|
hash/hmac
|
||||||
|
20
hash/sha3.cpp
Normal file
20
hash/sha3.cpp
Normal 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
24
hash/sha3.hpp
Normal 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
1
test/hash/sha3.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
int main () { }
|
Loading…
Reference in New Issue
Block a user