mcpp index

compat.blake3

#include

BLAKE3 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…