[#EVP_SealInit] = EVP_SealInit :mrdocs: Initialize a seal (envelope encrypt) operation for `npubk` recipients. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_SealInit( xref:EVP_CIPHER_CTX.adoc[EVP_CIPHER_CTX]* ctx, xref:EVP_CIPHER-07.adoc[EVP_CIPHER] const* type, unsigned char** ek, int* ekl, unsigned char* iv, xref:EVP_PKEY.adoc[EVP_PKEY]** pubk, int npubk); ---- == Return Value Number of recipients successfully processed, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Cipher context that will encrypt the content with a generated session key. | *type* | Symmetric cipher used for the content. | *ek* | Array of buffers receiving per‐recipient encrypted session keys. | *ekl* | Array receiving the encrypted‐key lengths written to `ek.` | *iv* | Buffer receiving the generated IV (sized for `type),` or NULL if unused. | *pubk* | Array of recipient public keys used to wrap the session key. | *npubk* | Number of entries in `pubk` / `ek` / `ekl.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#