-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMimAttack.h
31 lines (28 loc) · 912 Bytes
/
MimAttack.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* =====================================================================================
*
* Filename: MimAttack.h
*
* Description:
*
* Version: 1.0
* Created: 10/19/2008 08:40:55 PM
* Revision: none
* Compiler: gcc
*
* Author: Bryce Allen (bda), [email protected]
* Company:
*
* =====================================================================================
*/
class MimAttack : public ElgamalAttack {
private:
MpzTable *table;
public:
MimAttack (ElgamalCryptosystem *c, unsigned int bits1, unsigned int bits2);
~MimAttack ();
bool buildTable (gmp_randstate_t rstate);
size_t crackMessage (MpzList *results, const ElgamalCipherText ct,
gmp_randstate_t rstate, size_t maxResults=0);
const char* getAttackName () const { return "mim"; }
};