Crate block_padding [−] [src]
Padding and unpadding of messages divided into blocks.
This crate provides Padding
trait which provides padding and unpadding
operations. Additionally several common padding schemes are available out
of the box.
Structs
PadError |
Error for indicating failed padding operation |
UnpadError |
Error for indicating failed unpadding operation |
Enums
AnsiX923 |
Pad block with zeros excpet the last byte which will be set to the number bytes. |
Iso7816 |
Pad block with byte sequence |
Pkcs7 |
Pad block with bytes with value equal to the number of bytes added. |
ZeroPadding |
Pad block with zeros. |
Traits
Padding |
Trait for padding messages divided into blocks |