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
/
RsaCrt.h
diff --git
a/src/RsaCrt.h
b/src/RsaCrt.h
index
87f9a11
..
2341939
100644
(file)
--- a/
src/RsaCrt.h
+++ b/
src/RsaCrt.h
@@
-24,6
+24,9
@@
public:
static std::pair<Rsa::KeyPub, KeyPriv> generateRSAKeys(uint exponent, uint keySizeBits);
+ /**
+ * m must not be greater or equal than kPriv.n.
+ */
static mpz_class sign(const mpz_class& m, const KeyPriv& kPriv);
};