|
@@ -1,12 +1,14 @@
|
|
|
#include <crypt/BigInt64.hpp>
|
|
|
#include <hash.hpp>
|
|
|
+#include <myheader.h>
|
|
|
+#include <iostream>
|
|
|
int main(){
|
|
|
- unsigned long long a = 0;
|
|
|
- unsigned long long* b = &a;
|
|
|
- while(true){
|
|
|
- auto hesch = sha512(b,b+1);
|
|
|
- a++;
|
|
|
- std::cout << hesch.hexString();
|
|
|
- }
|
|
|
- std::cout << "Fertig" << std::endl;
|
|
|
+ std::mt19937_64 gen(54);
|
|
|
+ BigInt n(2);
|
|
|
+ unsigned int i = 1;
|
|
|
+ auto t1 = std::nanoTime();
|
|
|
+ n = n.modPow(BigInt(gen, 31), secure_prime);
|
|
|
+ std::cout << n.toString() << std::endl;
|
|
|
+ auto t2 = std::nanoTime();
|
|
|
+ std::cout << sha512(n).hexString() << std::endl;
|
|
|
}
|