1 | #if !defined(CONF_OPENSSL) |
---|---|
2 | |
3 | #include "hash_ctxt.h" |
4 | |
5 | #include <engine/external/md5/md5.h> |
6 | |
7 | void md5_update(MD5_CTX *ctxt, const void *data, size_t data_len) |
8 | { |
9 | md5_append(ctxt, (const md5_byte_t *)data, data_len); |
10 | } |
11 | |
12 | MD5_DIGEST md5_finish(MD5_CTX *ctxt) |
13 | { |
14 | MD5_DIGEST result; |
15 | md5_finish_(ctxt, result.data); |
16 | return result; |
17 | } |
18 | |
19 | #endif |
20 |