HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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