[#PEM_get_EVP_CIPHER_INFO]
= PEM&lowbar;get&lowbar;EVP&lowbar;CIPHER&lowbar;INFO
:mrdocs:

Parse a PEM encapsulation header for cipher and IV (legacy PEM encryption)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PEM&lowbar;get&lowbar;EVP&lowbar;CIPHER&lowbar;INFO(
    char* header,
    xref:EVP_CIPHER_INFO.adoc[EVP&lowbar;CIPHER&lowbar;INFO]* cipher);
----

== Description

Deprecated&colon; prefer PKCS&num;8 with PKCS&num;5 v2&period;0 PBE for new private&hyphen;key storage&period;

== Return Value

1 on success, or 0 if the header is missing, malformed, or unsupported&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *header*
| Encapsulation header returned by PEM&lowbar;read() &sol; PEM&lowbar;read&lowbar;bio()&period;
| *cipher*
| Receives the cipher and IV when the PEM data is encrypted&period;
|===


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