cryptonite-0.7: Cryptography Primitives sink

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Crypto.Data.Padding

Description

Various cryptographic padding commonly used for block ciphers or assymetric systems.

Synopsis

Documentation

data Format Source

Constructors

PKCS5

PKCS5: PKCS7 with hardcoded size of 8

PKCS7 Int

PKCS7 with padding size between 1 and 255

Instances

pad :: ByteArray byteArray => Format -> byteArray -> byteArray Source

Apply some pad to a bytearray

unpad :: ByteArray byteArray => Format -> byteArray -> Maybe byteArray Source

Try to remove some padding from a bytearray.