Skip to content

About

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

mojo-crypto

Cryptographic primitives implemented in Mojo, with portable software backends alongside hardware-accelerated (ARMv8 Crypto Extension, x86 AES-NI/PCLMULQDQ) and GPU implementations.

Documentation

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.

Modules

  • 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.

Requirements

  • pixi — manages the Mojo toolchain and dependencies

Commands

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

About

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages