OSSL_DECODER_CTX_set_passphrase

Supply a passphrase for decrypting encoded private-key input.

Synopsis

Declared in <openssl/decoder.h>

int
OSSL_DECODER_CTX_set_passphrase(
    OSSL_DECODER_CTX* ctx,
    unsigned char const* kstr,
    size_t klen);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxDecoder context to configure.
kstrPassphrase bytes.
klenLength of kstr in bytes.