Browse Source

Hash must be trimmet

mawinkle 6 years ago
parent
commit
add3845e58
1 changed files with 5 additions and 1 deletions
  1. 5 1
      test.cpp

+ 5 - 1
test.cpp

@@ -9,6 +9,10 @@ int main(){
     auto t1 = std::nanoTime();
     n = n.modPow(BigInt(gen, 31), secure_prime);
     std::cout << n.toString() << std::endl;
+    n.trim();
+    if(nelly < 3){
+        
+    }
     auto t2 = std::nanoTime();
-    std::cout << sha512(n).hexString() << std::endl;
+    std::cout << sha512(n.begin(), n.end()).hexString() << std::endl;
 }