-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresourcefilenames.h
30 lines (27 loc) · 1.07 KB
/
resourcefilenames.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
/*
* =====================================================================================
*
* Filename: resourcefilenames.h
*
* Description: Get filenames for resources.
*
* Version: 1.0
* Created: 10/11/2008 05:47:16 PM
* Revision: none
* Compiler: gcc
*
* Author: Bryce Allen (bda), [email protected]
* Company:
*
* =====================================================================================
*/
#define CRYPTOSYSTEM_DIR "cryptosystems/"
#define CRYPTOSYSTEM_EXT ".elg"
#define MESSAGE_EXT ".msg"
#define TABLE_EXT ".tbl"
char *getCryptosystemFileName (char *label, ElgamalCryptosystem *e);
char *getCryptosystemFilePath (char *label, ElgamalCryptosystem *e);
char *getCryptosystemDirPath (char *label, ElgamalCryptosystem *e);
char *getCipherTextFilePath (char *label, ElgamalCryptosystem *e, ElgamalCipherText ct);
char *getAttackTableFilePath (ElgamalCryptosystem *e, char *attackName, int bits1);
char *getAttackResultsFilePath (ElgamalCryptosystem *e, char *attackName, int bits1, ElgamalCipherText ct);