[#CRYPTO_128_wrap] = CRYPTO_128_wrap :mrdocs: Wrap a key with AES Key Wrap (RFC 3394) using `block.` == Synopsis Declared in `<openssl/modes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- size_t CRYPTO_128_wrap( void* key, unsigned char const* iv, 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.` | *iv* | Optional 8‐byte IV, or NULL for the RFC 3394 default IV. | *out* | Buffer for the wrapped key (at least `inlen` + 8 bytes). | *in* | Key material as n 64‐bit blocks with n >= 2. | *inlen* | Length of `in` in bytes (multiple of 8, at least 16). | *block* | Block‐encrypt function used by the wrap algorithm. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#