summaryrefslogtreecommitdiff
path: root/ThirdParty/hash-library/tests/github-issue6.cpp
blob: e3039593f16f8a02a31e3b425005508e33031f8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}