aboutsummaryrefslogtreecommitdiff
path: root/rsa.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-08 11:56:47 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-08 11:56:47 +0200
commitf49e2058ad2c6d7eedded27fa41bd30405db5aaa (patch)
tree30dc9842617c58ffc9313c8a9c1b254fdc1e8176 /rsa.h
parent2fe3a5f06bf4423fbb881238b30f6f592b5c0127 (diff)
Make parameter order a bit more consistent
Diffstat (limited to 'rsa.h')
-rw-r--r--rsa.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsa.h b/rsa.h
index abedf84..f931ab3 100644
--- a/rsa.h
+++ b/rsa.h
@@ -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