Skip to main content

hash_n_to_m_no_pad

Function hash_n_to_m_no_pad 

Source
pub fn hash_n_to_m_no_pad(input: &[Fp], num_outputs: usize) -> Vec<Fp>
Expand description

Variable-length absorb / variable-length squeeze sponge built on permute.

Returns num_outputs field elements derived from input under the Lighter “overwrite, no-pad” sponge convention. With an empty input, the state stays at zero and the squeeze reads zeros directly without permuting.

Fixed-size callers (hash_n_to_hash_no_pad, hash_to_quintic_extension) bypass the Vec allocation; this entry point exists for callers that need a variable num_outputs.