Unwrap a key with AES Key Wrap (RFC 3394) using block.
Declared in <openssl/modes.h>
size_t
CRYPTO_128_unwrap(
void* key,
unsigned char const* iv,
unsigned char* out,
unsigned char const* in,
size_t inlen,
block128_f block);
Length of unwrapped data written to out, or 0 on error (including IV mismatch).
| Name | Description |
|---|---|
| key | Cipher-specific expanded key for block. |
| iv | Optional expected 8-byte IV, or NULL for the RFC 3394 default IV. |
| out | Buffer for the unwrapped key (at least inlen - 8 bytes). |
| in | Wrapped key material as n 64-bit blocks with n >= 2. |
| inlen | Length of in in bytes (multiple of 8, at least 16). |
| block | Block-decrypt function used by the unwrap algorithm. |