Expand description
§RustCrypto: Block Padding
Padding and unpadding of messages divided into blocks.
This crate provides the Padding trait with padding and unpadding methods.
Additionally, several common padding schemes are available out of the box.
§License
Licensed under either of:
at your option.
§Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Re-exports§
pub use hybrid_array as array;
Structs§
- Ansi
X923 - Pad block with zeros except the last byte which will be set to the number bytes.
- Error
- Error returned by the
Paddingtrait methods. - Iso7816
- Pad block with byte sequence
\x80 00...00 00. - Iso10126
- Pad block with arbitrary bytes ending with value equal to the number of bytes added.
- NoPadding
- Don’t pad the data. Useful for key wrapping.
- Pkcs7
- Pad block with bytes with value equal to the number of bytes added.
- Zero
Padding - Pad block with zeros.
Enums§
- Padded
Data - Padded data split into blocks with detached last block returned by
Padding::pad_detached.
Traits§
- Padding
- Trait for message padding algorithms.