dav/crypto.h

changeset 39
3e55bed345f9
parent 33
0bbbb0341606
equal deleted inserted replaced
38:b855f76e965b 39:3e55bed345f9
30 #define DAV_CRYPTO_H 30 #define DAV_CRYPTO_H
31 31
32 #include <libidav/webdav.h> 32 #include <libidav/webdav.h>
33 #include "config.h" 33 #include "config.h"
34 #include <openssl/evp.h> 34 #include <openssl/evp.h>
35 #include <ucx/string.h>
35 36
36 #ifdef __cplusplus 37 #ifdef __cplusplus
37 extern "C" { 38 extern "C" {
38 #endif 39 #endif
39 40
66 67
67 AESEncrypter* aes_encrypter_new(Key *key, void *stream, dav_read_func read_func); 68 AESEncrypter* aes_encrypter_new(Key *key, void *stream, dav_read_func read_func);
68 size_t aes_read(void *buf, size_t s, size_t n, AESEncrypter *enc); 69 size_t aes_read(void *buf, size_t s, size_t n, AESEncrypter *enc);
69 void aes_encrypter_close(AESEncrypter *enc); 70 void aes_encrypter_close(AESEncrypter *enc);
70 71
72 char* aes_encrypt(char *in, Key *key);
73 char* aes_decrypt(char *in, Key *key);
74
71 #ifdef __cplusplus 75 #ifdef __cplusplus
72 } 76 }
73 #endif 77 #endif
74 78
75 #endif /* DAV_CRYPTO_H */ 79 #endif /* DAV_CRYPTO_H */

mercurial