[#CRYPTO_128_wrap_pad] = CRYPTO_128_wrap_pad :mrdocs: Wrap a key with AES Key Wrap with Padding (RFC 5649) using `block.` == Synopsis Declared in `<openssl/modes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- size_t CRYPTO_128_wrap_pad( void* key, unsigned char const* icv, unsigned char* out, unsigned char const* in, size_t inlen, xref:block128_f.adoc[block128_f] block); ---- == Return Value Length of wrapped data written to `out,` or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *key* | Cipher‐specific expanded key for `block.` | *icv* | Optional 4‐byte AIV integrity value, or NULL for the default. | *out* | Buffer for the wrapped key material. | *in* | Key material octets to wrap (any length in the supported range). | *inlen* | Length of `in` in bytes. | *block* | Block‐encrypt function used by the wrap algorithm. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#