mirror of
https://github.com/kristoferssolo/cipher-workshop.git
synced 2026-02-04 06:42:11 +00:00
feat(cipher-core): add PKCS#7 padding support
Add pkcs7_pad and pkcs7_unpad functions for block cipher modes:
- Pad data to block size multiples with N bytes of value N
- Validate and remove padding on decryption
- Add InvalidPadding variant to CipherError
This commit is contained in:
@@ -19,4 +19,4 @@ mod key;
|
||||
mod operations;
|
||||
mod sbox;
|
||||
|
||||
pub use {aes::Aes, block::Block128, block::Block32, iv::Iv};
|
||||
pub use {aes::Aes, block::Block32, block::Block128, iv::Iv};
|
||||
|
||||
Reference in New Issue
Block a user