projects
/
crypto_lab3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add measures and tests.
[crypto_lab3.git]
/
src
/
RsaStd.h
diff --git
a/src/RsaStd.h
b/src/RsaStd.h
index
ea348bf
..
27f73ad
100644
(file)
--- a/
src/RsaStd.h
+++ b/
src/RsaStd.h
@@
-16,6
+16,10
@@
public:
static std::pair<Rsa::KeyPub, KeyPriv> generateRSAKeys(uint exponent, uint keySizeBits);
static std::pair<Rsa::KeyPub, KeyPriv> generateRSAKeys(uint exponent, uint keySizeBits);
+ /**
+ * Return m^d (mod n).
+ * m must not be greater or equal than kPriv.n.
+ */
static mpz_class sign(const mpz_class& m, const KeyPriv& kPriv);
};
static mpz_class sign(const mpz_class& m, const KeyPriv& kPriv);
};