CRYPTO_128_wrap_pad

Wrap a key with AES Key Wrap with Padding (RFC 5649) using block.

Synopsis

Declared in <openssl/modes.h>

size_t
CRYPTO_128_wrap_pad(
    void* key,
    unsigned char const* icv,
    unsigned char* out,
    unsigned char const* in,
    size_t inlen,
    block128_f block);

Return Value

Length of wrapped data written to out, or 0 on error.

Parameters

NameDescription
keyCipher-specific expanded key for block.
icvOptional 4-byte AIV integrity value, or NULL for the default.
outBuffer for the wrapped key material.
inKey material octets to wrap (any length in the supported range).
inlenLength of in in bytes.
blockBlock-encrypt function used by the wrap algorithm.