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

新增 blake2b 模块,提供多种长度的 Blake2b 哈希计算功能,
包括 224、256、384 和 512 位版本,并支持对字节数组和文件进行哈希计算。
同时支持返回字节数组和十六进制字符串两种格式。
在 Cargo.toml 中添加了 blake2b_simd 依赖以实现该功能。
This commit is contained in:
徐涛
2025-10-09 11:18:58 +08:00
parent a89f9aff15
commit 0697e61f35
3 changed files with 100 additions and 0 deletions

View File

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