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

Modulejose-0.11Haskell2010

Crypto.JOSE.AESKW

Advanced Encryption Standard (AES) Key Wrap Algorithm; https://https://tools.ietf.org/html/rfc3394.

  • 2 values
  • Packagejose-0.11
  • Exports2
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceAESKW.hs
valueaesKeyUnwrap
  1. :: (ByteArrayAccess c, ByteArray m, BlockCipher128 cipher)
  2. => cipher
  3. -> c
  4. -> Maybe m
#

Unwrap a secret.

Input size must be a multiple of 8 bytes, and at least 24 bytes. Output size is input size minus 8 bytes.

Returns Nothing if inherent integrity check fails. Otherwise, the chance that the key data is corrupt is 2 ^ -64.