Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

MLDSA44

ML-DSA-44 (Module-Lattice-Based Digital Signature Algorithm, 44 parameter set) as specified in NIST FIPS 204.

This is a post-quantum signature scheme providing NIST security category 2, which is roughly equivalent to the security of SHA-256 or AES-128.

Key sizes:

Example usage:

const kp = MLDSA44.KeyPair.generate();
const msg = "Hello, post-quantum world!";
const sig = try kp.sign(msg, null);
try sig.verify(msg, kp.public_key);
ml_dsa.MLDSA44
pub const MLDSA44 = MLDSAImpl(.

File

lib/std/crypto/ml_dsa.zig:47

Code

pub const MLDSA44 = MLDSAImpl(.{
    .name = "ML-DSA-44",
    .k = 4,
    .l = 4,
    .eta = 2,
    .omega = 80,
    .tau = 39,
    .gamma1_bits = 17,
    .gamma2 = 95232, // (Q-1)/88
    .tr_size = 64,
    .ctilde_size = 32,
})