fastc-core · SHA-256, HMAC, constant-time compare
fastc-core-crypto-primitives
fastc-core-crypto-primitives ships SHA-256, HMAC-SHA-256, constant-time comparison, and secure random bytes. It is primitives, not protocols — for TLS you use the http package, which links OpenSSL.
capability CapRand for random_bytes
What it ships (v0.1.0)
- SHA-256 and HMAC-SHA-256
- Constant-time comparison
- Secure random bytes (CapRand)
When to use it
Hashing, message authentication, and token comparison — not full protocols.
Example
use crypto::sha256;
fn digest(data: Bytes) -> Bytes {
return sha256(data);
} fastc-core-crypto-primitives — minimal usage fastc-core-crypto-primitives v0.1.0
Roadmap
SHA-512 and Ed25519 signatures land in v0.2.
Provenance
Like every fastc-core package, fastc-core-crypto-primitives ships with
content-hashed, cosign-keyless-signed releases and SLSA L3 provenance. It is
vendored, not pulled from a central registry — there is no account to compromise.
See also
- github.com/fastc-lang/fastc-core-crypto-primitives — source, at
v0.1.0 - docs.fastc-lang.com/language/fastc-core/ — the per-package API deep-dive
- All eleven fastc-core packages →