-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsotpet_private.h
49 lines (34 loc) · 1.18 KB
/
sotpet_private.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* SOTPET - Simple One-Trick Pony Encryption Tool */
extern uint64_t current_blockid;
struct sotpet_workset;
struct sotpet_container
{
const char *fun;
bool decryptflag;
uint16_t cpus;
uint16_t slots;
struct sotpet_workset *workset;
uint32_t blocksize;
uint64_t startblocknum;
uint64_t currentblocknum;
uint16_t slot;
/***********************************/
//uint8_t hash[WHIRLPOOL_DIGESTBYTES];
KeyTableType *nshkey1,
*nshkey2;
SotpetSharedMem *shkey1,
*shkey2;
//uint64_t hashbytes;
};
struct sotpet_workset
{
bool decryptflag;
/***********************************/
uint32_t numblocks;
uint32_t blocksize;
uint32_t startblocknum;
uint8_t *bufferptr;
/***********************************/
KeyTableType *key1, // just references, do not free()
*key2;
};