Wrap a secret.
Input size must be a multiple of 8 bytes, and at least 16 bytes. Output size is input size plus 8 bytes.
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11
Modulejose-0.13GHC2021
Advanced Encryption Standard (AES) Key Wrap Algorithm; https://https://tools.ietf.org/html/rfc3394.
Wrap a secret.
Input size must be a multiple of 8 bytes, and at least 16 bytes. Output size is input size plus 8 bytes.
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.