[#EVP_CIPHER_param_to_asn1] = EVP_CIPHER_param_to_asn1 :mrdocs: Encode cipher parameters (typically including the IV) from `c` into an ASN1_TYPE. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_CIPHER_param_to_asn1( xref:EVP_CIPHER_CTX.adoc[EVP_CIPHER_CTX]* c, xref:ASN1_TYPE.adoc[ASN1_TYPE]* type); ---- == Return Value 1 on success, or 0/‐1 on failure (for example if the cipher lacks ASN.1 support). == Parameters [cols="1,4"] |=== | Name| Description | *c* | Cipher context whose AlgorithmIdentifier parameters are written; the IV must already be set. | *type* | Destination ASN.1 type that receives the parameters. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#