Unwrap a key with AES Key Wrap with Padding (RFC 5649) using block.
Declared in <openssl/modes.h>
size_t
CRYPTO_128_unwrap_pad(
void* key,
unsigned char const* icv,
unsigned char* out,
unsigned char const* in,
size_t inlen,
block128_f block);
Length of unwrapped data written to out, or 0 on error.
| Name | Description |
|---|---|
| key | Cipher-specific expanded key for block. |
| icv | Optional expected AIV / integrity value, or NULL for the default. |
| out | Buffer for the unwrapped key material. |
| in | Wrapped key octets. |
| inlen | Length of in in bytes. |
| block | Block-encrypt/decrypt function used by the unwrap algorithm. |