HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecrypton-1.0.4Haskell2010

Crypto.Data.Padding

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

  • 1 type
  • 2 values
  • Packagecrypton-1.0.4
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePadding.hs
datadata Format
#

Format of padding

Constructors

  • PKCS5

    PKCS5: PKCS7 with hardcoded size of 8

  • PKCS7 Int

    PKCS7 with padding size between 1 and 255

  • ZERO Int

    zero padding with block size

Instances2Eq, Show
  • Eq FormatDefined in crypton-1.0.4 · Crypto.Data.Padding
  • Show FormatDefined in crypton-1.0.4 · Crypto.Data.Padding
valuepad :: ByteArray byteArray => Format -> byteArray -> byteArray
#

Apply some pad to a bytearray