#pkcs7 #iso-7816 #ansix923

no-std block-padding

Padding and unpadding of messages divided into blocks

20 releases

Uses new Rust 2024

0.4.2 Nov 26, 2025
0.4.0-rc.4 Sep 2, 2025
0.4.0-rc.3 Feb 22, 2025
0.4.0-rc.2 Oct 21, 2024
0.1.0 Feb 20, 2018

#2692 in Cryptography

Download history 849598/week @ 2025-08-19 835251/week @ 2025-08-26 882586/week @ 2025-09-02 939496/week @ 2025-09-09 824233/week @ 2025-09-16 895605/week @ 2025-09-23 947084/week @ 2025-09-30 911197/week @ 2025-10-07 924280/week @ 2025-10-14 931436/week @ 2025-10-21 999256/week @ 2025-10-28 1033841/week @ 2025-11-04 978625/week @ 2025-11-11 1143769/week @ 2025-11-18 797698/week @ 2025-11-25 767422/week @ 2025-12-02

3,844,692 downloads per month
Used in 4,212 crates (39 directly)

MIT/Apache

17KB
247 lines

RustCrypto: Block Padding

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

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.

Dependencies

~530KB
~15K SLoC