test.cpp 449 B

123456789101112131415161718
  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. n.trim();
  13. if(nelly < 3){
  14. }
  15. auto t2 = std::nanoTime();
  16. std::cout << sha512(n.begin(), n.end()).hexString() << std::endl;
  17. }