PKCS7_set_digest

Set the message-digest algorithm on a DigestedData PKCS#7 structure.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_set_digest(
    PKCS7* p7,
    EVP_MD const* md);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
p7PKCS#7 object of type digestedData.
mdDigest method to record in the DigestedData AlgorithmIdentifier.