[#EVP_PKEY_CTX_set1_id] = EVP_PKEY_CTX_set1_id :mrdocs: Set an algorithm‐specific identity value on a key operation context (copied). == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_CTX_set1_id( xref:EVP_PKEY_CTX.adoc[EVP_PKEY_CTX]* ctx, void const* id, int len); ---- == Return Value 1 on success, or a non‐positive value on failure. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#