wolf_crypto/hash/
md5.rs

1use wolf_crypto_sys::{
2    wc_Md5,
3    wc_Md5Update, wc_Md5Final,
4    wc_InitMd5, wc_Md5Free,
5    wc_Md5Copy
6};
7
8make_api! {
9    sec_warning: "MD5 should be [considered cryptographically broken and unsuitable for further use](https://www.kb.cert.org/vuls/id/836068). \
10                  Collision attacks against MD5 are both practical and trivial, and theoretical \
11                  attacks against MD5 have been found.",
12    name: Md5,
13    wc: wc_Md5,
14    bs: 16,
15    init: wc_InitMd5,
16    update: wc_Md5Update,
17    finalize: wc_Md5Final,
18    free: wc_Md5Free,
19    copy: wc_Md5Copy
20}