projects
/
crypto_lab3.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Attack implementation.
[crypto_lab3.git]
/
src
/
Tests.h
1
#ifndef TESTS_H
2
#define TESTS_H
3
4
#include
"Utils.h"
5
6
class
Tests
7
{
8
public
:
9
Tests
(
uint keySizeBits
,
uint rsaPublicExponent
);
10
11
void
runTests
();
12
void
runTimeMeasures
();
13
void
doAttack
();
14
15
private
:
16
bool
rsaStandard
();
17
bool
rsaCrt
();
18
19
int
timeSignRsaStd
(
int
N
);
20
int
timeSignRsaCRT
(
int
N
);
21
22
const
uint KEY_SIZE_BITS
;
23
const
uint RSA_PUBLIC_EXPONENT
;
24
};
25
26
#endif