Cryptographic primitives implemented in Mojo, with portable software backends alongside hardware-accelerated (ARMv8 Crypto Extension, x86 AES-NI/PCLMULQDQ) and GPU implementations.
Full API documentation is published at
https://Mr-Leshiy.github.io/mojo-crypto/, generated from the source with
Modo. Build it locally with pixi run docs.
aead— Authenticated Encryption with Associated Data (AES-GCM, AES-GCM-SIV etc.).block_ciphers— block ciphers (AES etc.) and modes of operation (CTR, CBC etc.).universal_hashes— universal hash functions (GHASH, POLYVAL etc.).hashes— cryptographic hash functions (SHA-2, SHA-3 etc.).macs— message authentication codes (CMAC, HMAC etc.).utils— shared utilities.
- pixi — manages the Mojo toolchain and dependencies
pixi run fmt # format all Mojo sources
pixi run test # run the test suite (requires a GPU)
pixi run bench # run the Mojo benchmarks (requires a GPU)
pixi run bench-rust # run the Rust reference benchmarks
pixi run docs # build the API documentation site