Select the cipher used to encrypt encoded private-key material.
Declared in <openssl/encoder.h>
int
OSSL_ENCODER_CTX_set_cipher(
OSSL_ENCODER_CTX* ctx,
char const* cipher_name,
char const* propquery);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | Encoder context to configure. |
| cipher_name | Cipher algorithm name (for example "AES-256-CBC"), or NULL to clear. |
| propquery | Property query for fetching the cipher, or NULL. |