BlockPadding
enum BlockPadding
Block padding mode.
Enum Items
Don't pad the data.
Pad block with zeros except the last byte which will be set to the number bytes.
Pad block with byte sequence \x80 00...00 00.
Pad block with arbitrary bytes ending with value equal to the number of bytes added.
Pad block with bytes with value equal to the number of bytes added.
Pad block with zeros.
Implementions
Methods
[src]
pub fn pad(self, block: Bytes, pos: int) throws PadError {
try _crypto.pad(self as int, block, pos);
}
Pads block filled with data up to pos.
[src]
pub fn pad(self, block: Bytes, pos: int) throws PadError {
try _crypto.pad(self as int, block, pos);
}
Pads block filled with data up to pos.
Pads block filled with data up to pos.
unpad
pub fn unpad(self, block: Bytes): Bytes throws UnpadError
[src]
pub fn unpad(self, block: Bytes): Bytes throws UnpadError {
return try _crypto.unpad(self as int, block);
}
Unpad data in the block and return it.
unpad
pub fn unpad(self, block: Bytes): Bytes throws UnpadError
[src]
pub fn unpad(self, block: Bytes): Bytes throws UnpadError {
return try _crypto.unpad(self as int, block);
}
Unpad data in the block and return it.
Unpad data in the block and return it.