rncryptor-0.0.2.0: Haskell implementation of the RNCryptor file format

Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.RNCryptor.Padding

Synopsis

Documentation

pkcs7Padding Source

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