test.cpp 384 B

1234567891011121314
  1. #include <crypt/BigInt64.hpp>
  2. #include <hash.hpp>
  3. #include <myheader.h>
  4. #include <iostream>
  5. int main(){
  6. std::mt19937_64 gen(54);
  7. BigInt n(2);
  8. unsigned int i = 1;
  9. auto t1 = std::nanoTime();
  10. n = n.modPow(BigInt(gen, 31), secure_prime);
  11. std::cout << n.toString() << std::endl;
  12. auto t2 = std::nanoTime();
  13. std::cout << sha512(n).hexString() << std::endl;
  14. }