Initial import of libdpf.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ryan Henry 2026-09-24 14:08:32 -06:00
commit e4e666f459
4563 changed files with 1690372 additions and 0 deletions

View 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;
}