[#EVP_CIPHER_set_asn1_iv]
= EVP&lowbar;CIPHER&lowbar;set&lowbar;asn1&lowbar;iv
:mrdocs:

Encode the cipher context IV into an ASN&period;1 OCTET STRING inside `type&period;`

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;CIPHER&lowbar;set&lowbar;asn1&lowbar;iv(
    xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX]* c,
    xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]* type);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| Cipher context whose IV is serialized&period;
| *type*
| ASN1&lowbar;TYPE that receives an OCTET STRING encoding of the IV&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
