Assign the algorithm type of an empty EVP_PKEY by NID / EVP_PKEY_* id.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_set_type(
    EVP_PKEY* pkey,
    int type);

Return Value

1 on success, or 0 on error.

Parameters

Name

Description

pkey

Key object to type (typically freshly EVP_PKEY_new()'d).

type

Key type identifier (for example EVP_PKEY_RSA).

Created with MrDocs