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 */ |