Parse a PEM encapsulation header for cipher and IV (legacy PEM encryption).
Declared in <openssl/pem.h>
int
PEM_get_EVP_CIPHER_INFO(
char* header,
EVP_CIPHER_INFO* cipher);
Deprecated: prefer PKCS#8 with PKCS#5 v2.0 PBE for new private-key storage.
1 on success, or 0 if the header is missing, malformed, or unsupported.
| Name | Description |
|---|---|
| header | Encapsulation header returned by PEM_read() / PEM_read_bio(). |
| cipher | Receives the cipher and IV when the PEM data is encrypted. |