Skip to content

loadingalias/rscrypto

rscrypto

Pure Rust cryptography. Zero dependencies. Hardware accelerated.

Supported: x86-64, ARM64, Apple Silicon, RISC-V, IBM POWER, s390x.

Note: Only checksums are production-ready. Hash/AEAD/PQC crates are in development.

Install

[dependencies]
rscrypto = "0.1"

Usage

use rscrypto::{Crc32C, Checksum};

let crc = Crc32C::checksum(b"hello world");

Performance (GiB/s)

Algorithm Zen 4 Apple M3 Graviton 2
CRC-64/XZ 72 63 33
CRC-64/NVME 75 62 33
CRC-32C 72 75 40
CRC-32 78 74 40
CRC-16 80 61 33

Automatic dispatch: AVX-512, VPCLMUL, PMULL, EOR3, hardware CRC.

Features

Feature Default Description
checksums yes CRC-16, CRC-24, CRC-32, CRC-64
hashes no SHA-2, SHA-3, BLAKE3, and fast hash families
std yes Runtime CPU detection
alloc yes Buffered streaming APIs

For no_std:

rscrypto = { version = "0.1", default-features = false, features = ["checksums"] }

Contributing

Run just tune-contribute and submit via GitHub issue.

License

MIT OR Apache-2.0

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published