Debian Codegraph @

libs/pplib/pplib-src/src/util/utilcryptdef.h

raw
1
2 #ifndef UTIL_CRYPTDEF_H
3 #define UTIL_CRYPTDEF_H
4
5 struct rc4_state {
6 union {
7 rc4_map *map;
8 uint8_t *smap;
9 };
10 int i, j;
11 int flush;
12 int flags;
13 };
14
15 struct aes_state {
16 size_t keylength;
17 int rounds;
18 //int keywords;
19 union {
20 aes_block block;
21 uint8_t data[16];
22 };
23 aes_keyblock *keyblock;
24 uint8_t iv[16];
25 uint8_t buffered;
26 int flush;
27 int flags;
28 };
29
30 typedef union { rc4_state *rc4state; aes_state *aesstate; void *voidstate; } crypt_state_pointer; // to avoid 'dereferencing type-puned ...' warnings
31
32 #endif