projects
/
crypto_lab3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implementation of Shamir's trick (working in progress).
[crypto_lab3.git]
/
src
/
RsaCrt.h
diff --git
a/src/RsaCrt.h
b/src/RsaCrt.h
index
b680e31
..
adf6c72
100644
(file)
--- a/
src/RsaCrt.h
+++ b/
src/RsaCrt.h
@@
-2,6
+2,7
@@
#define RSACRT_H
#include <utility>
#define RSACRT_H
#include <utility>
+#include <exception>
#include <gmpxx.h>
#include <gmpxx.h>
@@
-25,9
+26,14
@@
public:
/**
* m must not be greater or equal than kPriv.n.
/**
* m must not be greater or equal than kPriv.n.
+ * @param m the message to sign. No padding is used.
*/
static mpz_class sign(const mpz_class& m, const KeyPriv& kPriv);
*/
static mpz_class sign(const mpz_class& m, const KeyPriv& kPriv);
+ /**
+ * Sp is altered by flipping its 42nd bit.
+ * @param m the message to sign. No padding is used.
+ */
static mpz_class signWithFaultySp(const mpz_class& m, const KeyPriv& kPriv);
};
static mpz_class signWithFaultySp(const mpz_class& m, const KeyPriv& kPriv);
};