OSSL_ENCODER_CTX_set_cipher

Select the cipher used to encrypt encoded private-key material.

Synopsis

Declared in <openssl/encoder.h>

int
OSSL_ENCODER_CTX_set_cipher(
    OSSL_ENCODER_CTX* ctx,
    char const* cipher_name,
    char const* propquery);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxEncoder context to configure.
cipher_nameCipher algorithm name (for example "AES-256-CBC"), or NULL to clear.
propqueryProperty query for fetching the cipher, or NULL.