feat: add kgm v5 (kgg) support.

This commit is contained in:
鲁树人
2025-02-24 20:41:17 +09:00
parent 02f0bb9a93
commit 54deabe74f
14 changed files with 202 additions and 30 deletions

View File

@@ -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()
}