Sign the DER encoding of an ASN.1 value described by it.
Synopsis
Declared in <openssl/x509.h>
int
ASN1_item_sign(
ASN1_ITEM const* it,
X509_ALGOR* algor1,
X509_ALGOR* algor2,
ASN1_BIT_STRING* signature,
void const* data,
EVP_PKEY* pkey,
EVP_MD const* md);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
it |
ASN.1 item descriptor for |
algor1 |
Optional AlgorithmIdentifier to set for the signature algorithm, or NULL. |
algor2 |
Optional second AlgorithmIdentifier to set (for example in certificates), or NULL. |
signature |
Destination BIT STRING that receives the signature bits. |
data |
Object to encode with |
pkey |
Private key used for signing. |
md |
Message digest, or NULL to use a key‐type default where applicable. |
Created with MrDocs