compat.blake3
#includeBLAKE3 cryptographic hash function (portable C implementation)
#include <blake3.h>
mcpp add compat.blake3@1.8.9
用法
來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。
#include <blake3.h>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <string>
namespace {
std::string to_hex(const uint8_t* bytes, size_t len) {
static const char digits[] = "0123456789abcdef";
std::string out;
out.reserve(len * 2);
for (size_t i = 0; i < len; ++i) {
out.push_back(digits[bytes[i] >> 4]);
out.push_back(digits[bytes[i] & 0x0F]);
}
return out;
}
} // namespace
// …
tests/examples/blake3/tests/blake3.cpp · 專案 tests/examples/blake3
建置
- targets
blake3 (lib)- language
c++23- C standard
c11- import std
- no
- include dirs
*/c
原始檔 (3)
*/c/blake3.c*/c/blake3_dispatch.c*/c/blake3_portable.c
版本
| 版本 | 平台 | 鏡像 | sha256 |
|---|---|---|---|
1.8.9 最新 |
LinuxWindowsmacOS | 來源 | e5c4e4cc0cf3… |