Set a passphrase used when the encoder encrypts private‐key output.

Synopsis

Declared in <openssl/encoder.h>

int
OSSL_ENCODER_CTX_set_passphrase(
    OSSL_ENCODER_CTX* ctx,
    unsigned char const* kstr,
    size_t klen);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ctx

Encoder context to configure.

kstr

Passphrase bytes (not necessarily NUL‐terminated).

klen

Length of kstr in bytes.

Created with MrDocs