Set an algorithm-specific identity value on a key operation context (copied).
Declared in <openssl/evp.h>
int
EVP_PKEY_CTX_set1_id(
EVP_PKEY_CTX* ctx,
void const* id,
int len);
1 on success, or a non-positive value on failure.
| Name | Description |
|---|---|
| ctx | Key context that supports an ID parameter (for example SM2). |
| id | Identity bytes to copy into the context. |
| len | Length of id in bytes. |