krystals

Crates.iokrystals
lib.rskrystals
version0.0.1
sourcesrc
created_at2022-08-01 20:52:15.877059
updated_at2022-08-01 20:52:15.877059
descriptionRust implementation of CRYSTALS-Kyber and CRYSTALS-Dilithium
homepagehttps://github.com/kammoh/crystals-rs
repositoryhttps://github.com/kammoh/crystals-rs.git
max_upload_size
id637056
size192,786
Kamyar Mohajerani (kammoh)

documentation

README

Pure rust, portable, secure, and efficient implementations of CRYSTALS-Kyber and CRYSTALS-Dilithium.

Goals

  1. Security and safety:
    1. Leverage Rust's memory safety features
    2. Straightforward API for secure integration
    3. Minimize use of unsafe code, and fully document and verify all unsafe code
    4. Extensive testing and verification
      1. Verified against the C reference implementations and extended KATs
  2. Portability:
    1. Targeting 32-bit and 64-bit architectures
      1. Support for: ARMv8, ARMv9, RISC-V, and x86_64
    2. Usable on embedded platforms, with or without an operating system no_std
      1. no heap allocation
    3. Platform-specific optimizations shall be considered
  3. Efficiency:
    1. Performance (latency, throughput) is a primary goal
    2. Minimize memory (RAM) footprint
    3. Minimize executable size (ROM)

Kyber

Kyber is an IND-CCA2-secure key encapsulation mechanism (KEM), whose security is based on the hardness of solving the learning-with-errors (LWE) problem over module lattices. Kyber has been identified as a winner of the NIST post-quantum cryptography project to be used in the upcoming NIST quantum-safe publickey cryptography standard.

Dilithium

Dilithium is a digital signature scheme that is strongly secure under chosen message attacks based on the hardness of lattice problems over module lattices. The design of Dilithium is based on the "Fiat-Shamir with Aborts" technique of Lyubashevsky which uses rejection sampling to make lattice-based Fiat-Shamir schemes compact and secure. Dilithium3 is the recommended parameter set.

Commit count: 20

cargo fmt