libidav/crypto.h

changeset 872
d24de29ad1fe
parent 857
03982275f29b
equal deleted inserted replaced
871:2ecddc5e93f1 872:d24de29ad1fe
157 157
158 void dav_sha256_init(DAV_SHA_CTX *ctx); 158 void dav_sha256_init(DAV_SHA_CTX *ctx);
159 DAV_SHA_CTX* dav_sha256_create(void); 159 DAV_SHA_CTX* dav_sha256_create(void);
160 void dav_sha256_update(DAV_SHA_CTX *ctx, const char *data, size_t len); 160 void dav_sha256_update(DAV_SHA_CTX *ctx, const char *data, size_t len);
161 void dav_sha256_final(DAV_SHA_CTX *ctx, unsigned char *buf); 161 void dav_sha256_final(DAV_SHA_CTX *ctx, unsigned char *buf);
162 void dav_sha256_final_free(DAV_SHA_CTX *ctx, unsigned char *buf);
162 163
163 DavKey* dav_pw2key(const char *password, const unsigned char *salt, int saltlen, int pwfunc, int enc); 164 DavKey* dav_pw2key(const char *password, const unsigned char *salt, int saltlen, int pwfunc, int enc);
164 165
165 CxBuffer* aes_encrypt_buffer(CxBuffer *in, DavKey *key); 166 CxBuffer* aes_encrypt_buffer(CxBuffer *in, DavKey *key);
166 CxBuffer* aes_decrypt_buffer(CxBuffer *in, DavKey *key); 167 CxBuffer* aes_decrypt_buffer(CxBuffer *in, DavKey *key);

mercurial