EVP_PKEY_copy_parameters

Copy algorithm parameters from one EVP_PKEY into another of the same type.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_copy_parameters(
    EVP_PKEY* to,
    EVP_PKEY const* from);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
toDestination key that receives the parameters.
fromSource key whose parameters are copied.