Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
e4e666f459
4563 changed files with 1690372 additions and 0 deletions
16
thirdparty/hash-library/tests/github-issue6.cpp
vendored
Normal file
16
thirdparty/hash-library/tests/github-issue6.cpp
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// minimal test case for https://github.com/stbrumme/hash-library/issues/6
|
||||
// g++ github-issue6.cpp ../sha3.cpp -o github-issue6 && ./github-issue6
|
||||
|
||||
#include "../sha3.h"
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
std::string text = "72a5f501151ca974002f34";
|
||||
|
||||
SHA3 hasher(SHA3::Bits512);
|
||||
hasher.add(text.data(), text.size());
|
||||
std::cout << hasher.getHash() << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue