Add a PKCS#9 messageDigest authenticated attribute to a SignerInfo.
Declared in <openssl/pkcs7.h>
int
PKCS7_add1_attrib_digest(
PKCS7_SIGNER_INFO* si,
unsigned char const* md,
int mdlen);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| si | SignerInfo to update. |
| md | Digest octets to embed (copied into a new ASN1_OCTET_STRING). |
| mdlen | Length of md in bytes. |