#pragma once #include #include #include "bigint.h" extern std::vector smallprimes; void fillsmallprimes(); //for use in RSA (pass target number of bits of N) std::pair genprimepair(int nbits); //finds random in range [low,high]; throws domain_error if no prime found //Will call fillsmallprimes() if not yet done Bigint randprime(const Bigint &low,const Bigint &high); //checks primality bool bailliePSW(const Bigint&);