| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Crypto.RNCryptor.Padding
Synopsis
- pkcs7Padding :: Int -> Int -> ByteString
Documentation
Arguments
| :: Int | The block size (e.g. 16 bytes) |
| -> Int | The input size |
| -> ByteString | The resulting padding |
Computes the padding as per PKCS#7. The specification can be found here: http://tools.ietf.org/html/rfc5652#section-6.3