X-Git-Url: http://git.euphorik.ch/?p=crypto_lab3.git;a=blobdiff_plain;f=src%2FTests.h;h=75f0bdbb36515de78bdf08be285bd5d5e4aee280;hp=fe75c6d14cbb8457de3b94d137c9e3c8a4b3580a;hb=22aac262156e81085b22bdfcd0cc38950768be9b;hpb=2745bc6570ac32789650336b8c84a52d1883c62a diff --git a/src/Tests.h b/src/Tests.h index fe75c6d..75f0bdb 100644 --- a/src/Tests.h +++ b/src/Tests.h @@ -8,17 +8,32 @@ class Tests public: Tests(uint keySizeBits, uint rsaPublicExponent); - void runTests(); + void runTests(); + void runTestsWithShamirsTrick(); void runTimeMeasures(); + void doAttack(); + void doAttackFixed(); 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); + + /** + * 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 timeSignRsaCRTShamirsTrick(int N); + const uint KEY_SIZE_BITS; const uint RSA_PUBLIC_EXPONENT; };