X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2FRsaStd.h;fp=src%2FRsaStd.h;h=ea348bf8dd80d4a263b1cb754d84b937082db952;hb=91989c2627abc2cdf511f17169e4f862dc55e838;hp=0000000000000000000000000000000000000000;hpb=7975d02c6c1ee679a236087e86955c086f1a9a8e;p=crypto_lab3.git diff --git a/src/RsaStd.h b/src/RsaStd.h new file mode 100644 index 0000000..ea348bf --- /dev/null +++ b/src/RsaStd.h @@ -0,0 +1,22 @@ +#ifndef RSASTD_H +#define RSASTD_H + +#include +#include + +#include "Rsa.h" + +class RsaStd +{ +public: + struct KeyPriv { + mpz_class n; + mpz_class d; + }; + + static std::pair generateRSAKeys(uint exponent, uint keySizeBits); + + static mpz_class sign(const mpz_class& m, const KeyPriv& kPriv); +}; + +#endif