Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- pkcs7Padding :: Int -> Int -> ByteString
Documentation
:: 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