Function popsicle::utils::compress_and_hash_inputs
source · pub fn compress_and_hash_inputs(inputs: &[Vec<u8>], key: Block) -> Vec<Block>
Expand description
Compress an arbitrary vector into a 128-bit chunk, leaving the final 8-bits as zero. We need to leave 8 bits free in order to add in the hash index when running the OPRF (cf. https://eprint.iacr.org/2016/799, §5.2).