EVP_PKEY_CTX_set1_id

Set an algorithm-specific identity value on a key operation context (copied).

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_CTX_set1_id(
    EVP_PKEY_CTX* ctx,
    void const* id,
    int len);

Return Value

1 on success, or a non-positive value on failure.

Parameters

NameDescription
ctxKey context that supports an ID parameter (for example SM2).
idIdentity bytes to copy into the context.
lenLength of id in bytes.