secret_toolkit_utils::padding

Function space_pad

Source
pub fn space_pad(message: &mut Vec<u8>, block_size: usize) -> &mut Vec<u8>
Expand description

Take a Vec and pad it up to a multiple of block_size, using spaces at the end.