mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-07 20:19:51 +00:00
feat: add kgm v5 (kgg) support.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use md5::{Digest, Md5};
|
||||
|
||||
/// Calculate the MD5 hash (non-modified) of a buffer.
|
||||
pub fn md5<T: AsRef<[u8]>>(buffer: T) -> [u8; 16] {
|
||||
pub fn md5(buffer: impl AsRef<[u8]>) -> [u8; 0x10] {
|
||||
Md5::digest(buffer).into()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user