PEM_dek_info

Append a DEK-Info encapsulation header (cipher name and hex IV) to a PEM header.

Synopsis

Declared in <openssl/pem.h>

void
PEM_dek_info(
    char* buf,
    char const* type,
    int len,
    char const* str);

Parameters

NameDescription
bufNUL-terminated buffer of size PEM_BUFSIZE to append into.
typeCipher name string (for example from EVP_CIPHER_get0_name()).
lenNumber of IV bytes at str.
strIV bytes written as uppercase hex after the cipher name.