Set a named octet-string parameter on an EVP_PKEY.
Declared in <openssl/evp.h>
int
EVP_PKEY_set_octet_string_param(
EVP_PKEY* pkey,
char const* key_name,
unsigned char const* buf,
size_t bsize);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| pkey | Key to update. |
| key_name | Parameter name understood by the key type (OSSL_PKEY_PARAM_*). |
| buf | Octet string value to assign (copied). |
| bsize | Length of buf in bytes. |