Skip to main content

pad_message

Function pad_message 

Source
pub fn pad_message(message: &[u8]) -> Vec<u8> 
Expand description

Pad a message to a fixed length.

§Panics

Panics if message is longer than PADDED_MESSAGE_LEN. The verification precondition (requires) rules this out, so the panic is provably unreachable and the length subtraction is safe.