Create a signature over data using an initialized signing context.
Synopsis
Declared in <openssl/evp.h>
int
EVP_PKEY_sign(
EVP_PKEY_CTX* ctx,
unsigned char* sig,
size_t* siglen,
unsigned char const* tbs,
size_t tbslen);
Return Value
1 on success, 0 or a negative value on failure.
Parameters
Name |
Description |
ctx |
Context previously prepared with EVP_PKEY_sign_init() (and optional controls). |
sig |
Output buffer for the signature, or NULL to only query the required length. |
siglen |
On entry, capacity of |
tbs |
Message or digest bytes to sign. |
tbslen |
Length of |
Created with MrDocs