projects
/
crypto_lab3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaning.
[crypto_lab3.git]
/
src
/
Tests.h
diff --git
a/src/Tests.h
b/src/Tests.h
index
fe75c6d
..
75f0bdb
100644
(file)
--- a/
src/Tests.h
+++ b/
src/Tests.h
@@
-8,17
+8,32
@@
class Tests
public:
Tests(uint keySizeBits, uint rsaPublicExponent);
public:
Tests(uint keySizeBits, uint rsaPublicExponent);
- void runTests();
+ void runTests();
+ void runTestsWithShamirsTrick();
void runTimeMeasures();
void runTimeMeasures();
+
void doAttack();
void doAttack();
+ void doAttackFixed();
private:
bool rsaStandard();
bool rsaCrt();
private:
bool rsaStandard();
bool rsaCrt();
+ bool rsaCrtWithShamirsTrick();
+ /**
+ * Return the time in [ms] required to sign N times with RSA standard.
+ * One key pair and a message is generated.
+ */
int timeSignRsaStd(int N);
int timeSignRsaStd(int N);
+
+ /**
+ * Return the time in [ms] required to sign N times with RSA CRT.
+ * One key pair and a message is generated.
+ */
int timeSignRsaCRT(int N);
int timeSignRsaCRT(int N);
+ int timeSignRsaCRTShamirsTrick(int N);
+
const uint KEY_SIZE_BITS;
const uint RSA_PUBLIC_EXPONENT;
};
const uint KEY_SIZE_BITS;
const uint RSA_PUBLIC_EXPONENT;
};