feat(hash): 添加 Blake3 哈希算法支持

新增 blake3 模块,提供多种长度的 Blake3 哈希计算功能,
包括 224、256、384 和 512 位输出格式,支持字节数组和文件输入,
并可选择返回字节数组或十六进制字符串。同时在 hash 模块中导出该功能。
This commit is contained in:
徐涛
2025-10-09 13:14:43 +08:00
parent 0697e61f35
commit 5b4dff402c
3 changed files with 111 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ crate-type = ["dylib", "rlib"]
aes = "0.8.3"
base64 = "0.21.2"
blake2b_simd = "1.0.3"
blake3 = { version = "1.8.2", features = ["serde", "digest"] }
blockhash = "0.5.0"
cbc = { version = "0.1.2", features = ["std"] }
chrono = "0.4.26"