HORIZON HASKELLDocslts/ghc-10.0.xa8896112026-10-18Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · a889611 · 2026-10-18

Modulejose-0.13GHC2021

Crypto.JOSE.AESKW

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

  • 2 values
  • Packagejose-0.13
  • Exports2
  • LanguageGHC2021
  • 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.