libidav/crypto.h

changeset 260
26f5f817429e
parent 234
33f373b28c8c
child 349
0b4ecadaf3f9
equal deleted inserted replaced
259:6c8d5f8a1d6f 260:26f5f817429e
45 #ifdef __cplusplus 45 #ifdef __cplusplus
46 extern "C" { 46 extern "C" {
47 #endif 47 #endif
48 48
49 typedef struct { 49 typedef struct {
50 EVP_CIPHER_CTX ctx; 50 EVP_CIPHER_CTX *ctx;
51 SHA256_CTX sha256; 51 SHA256_CTX sha256;
52 void *stream; 52 void *stream;
53 dav_write_func write; 53 dav_write_func write;
54 DavKey *key; 54 DavKey *key;
55 int init; 55 int init;
56 unsigned char ivtmp[16]; 56 unsigned char ivtmp[16];
57 size_t ivpos; 57 size_t ivpos;
58 } AESDecrypter; 58 } AESDecrypter;
59 59
60 typedef struct { 60 typedef struct {
61 EVP_CIPHER_CTX ctx; 61 EVP_CIPHER_CTX *ctx;
62 SHA256_CTX sha256; 62 SHA256_CTX sha256;
63 void *iv; 63 void *iv;
64 size_t ivlen; 64 size_t ivlen;
65 void *stream; 65 void *stream;
66 dav_read_func read; 66 dav_read_func read;

mercurial