… | |
… | |
34 | |
34 | |
35 | #include "global.h" |
35 | #include "global.h" |
36 | |
36 | |
37 | #include <openssl/aes.h> |
37 | #include <openssl/aes.h> |
38 | |
38 | |
|
|
39 | #if 0 |
39 | // only good for up to 2**31 sequence numbers |
40 | // only good for up to 2**31 sequence numbers |
40 | struct iv_gen |
41 | struct iv_gen |
41 | { |
42 | { |
42 | AES_KEY ctx; |
43 | AES_KEY ctx; |
43 | u32 count; // low 32 bit of counter value |
44 | u32 count; // low 32 bit of counter value |
44 | |
45 | |
45 | void reset (); |
46 | void reset (); |
46 | void get (void *buf, int len); |
47 | void get (void *buf, int len); |
47 | }; |
48 | }; |
|
|
49 | #endif |
48 | |
50 | |
49 | #endif |
51 | #endif |
50 | |
52 | |