mldsa44_mu
stdlib/mldsa/mldsa44_mu.nbv
mldsa44_mu(pk_bits, msg_bits)
mu = H(H(pk) || 0 || 0 || msg) for ML-DSA-44 with an empty context string (FIPS 204 Algorithms 3 and 8). pk_bits and msg_bits are the bits of the public key and message bytes. Returns 512 bits.
- Calls
calloc,keccak/shake256- Precompiles
concat!- Used by
dilithium/mldsa/mldsa44_verify,dilithium/mldsa/mldsa44_verify_static,mersenne61/mldsa/mldsa44_verify,milli/mldsa/mldsa44_verify
Source
# mu = H(H(pk) || 0 || 0 || msg) for ML-DSA-44 with an empty context string
# (FIPS 204 Algorithms 3 and 8). `pk_bits` and `msg_bits` are the bits of the
# public key and message bytes. Returns 512 bits.
(pk_bits, msg_bits)
let tr = shake256(pk_bits, 512)
shake256((concat! tr, calloc(16), msg_bits), 512)