diff options
Diffstat (limited to 'rsa.h')
-rw-r--r-- | rsa.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,8 +15,8 @@ namespace RSA{ Bigint pexp; }; - Bigint encrypt(const PublicKey &key,Bigint msg); - Bigint decrypt(const PrivateKey &key,Bigint msg); + Bigint encrypt(Bigint msg,const PublicKey &key); + Bigint decrypt(Bigint msg,const PrivateKey &key); PrivateKey genkey(int nbits); //nbits is target number of bits of modulus PrivateKey genkey(int nbits,const std::string &password); //generates key seeded by password |