Skip to main content

Module pad

Module pad 

Source
Expand description

Special handling for converting the BigUint to u8 vectors

Functionsยง

left_pad ๐Ÿ”’
Returns a new vector of the given length, with 0s left padded.
uint_to_be_pad ๐Ÿ”’
Converts input to the new vector of the given length, using BE and with 0s left padded. In some cases BoxedUint might already have leading zeroes, this function removes them before padding again.
uint_to_zeroizing_be_pad ๐Ÿ”’
Converts input to the new vector of the given length, using BE and with 0s left padded. In some cases BoxedUint might already have leading zeroes, this function removes them before padding again.