107 |
112 |
108 void dav_get_hash(DAV_SHA_CTX *sha256, unsigned char *buf); |
113 void dav_get_hash(DAV_SHA_CTX *sha256, unsigned char *buf); |
109 |
114 |
110 char* dav_create_hash(const char *data, size_t len); |
115 char* dav_create_hash(const char *data, size_t len); |
111 |
116 |
|
117 DavKey* dav_pw2key(const char *password, const char *salt, int saltlen, int pwfunc, int enc); |
|
118 |
|
119 UcxBuffer* aes_encrypt_buffer(UcxBuffer *buf, DavKey *key); |
|
120 UcxBuffer* aes_decrypt_buffer(UcxBuffer *buf, DavKey *key); |
|
121 |
112 #ifdef __cplusplus |
122 #ifdef __cplusplus |
113 } |
123 } |
114 #endif |
124 #endif |
115 |
125 |
116 #endif /* DAV_CRYPTO_H */ |
126 #endif /* DAV_CRYPTO_H */ |