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

Modulecrypto-api-0.13.3Haskell98

Crypto.Types

Type aliases used throughout the crypto-api modules.

  • 4 types
datadata IV k
#

Initilization Vectors for BlockCipher implementations (IV k) are used for various modes and guarrenteed to be blockSize bits long. The common ways to obtain an IV are to generate one (getIV or getIVIO) or to use one provided with the ciphertext (using the Serialize instance of IV).

zeroIV also exists and is of particular use for starting ctr mode with a fresh key.

Instances4Eq, Ord, Show, Serialize
  • Eq (IV k)Defined in crypto-api-0.13.3 · Crypto.Types
  • Ord (IV k)Defined in crypto-api-0.13.3 · Crypto.Types
  • Show (IV k)Defined in crypto-api-0.13.3 · Crypto.Types
  • BlockCipher k => Serialize (IV k)Defined in crypto-api-0.13.3 · Crypto.Classes · orphan
typetype BitLength = Int
#

The length of a field (usually a ByteString) in bits

datadata BlockCipherError
#
Instances6Eq, Data, Ord, Read, Show, Exception