Dkim Verifier BaseVerify Body Hash Method
Verify the hash of the message body.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
if the calculated body hash matches bodyHash; otherwise, .
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected static bool VerifyBodyHash(
FormatOptions options,
MimeMessage message,
DkimSignatureAlgorithm signatureAlgorithm,
DkimCanonicalizationAlgorithm canonicalizationAlgorithm,
int maxLength,
string bodyHash
)Parameters
- options FormatOptions
- The formatting options.
- message MimeMessage
- The signed MIME message.
- signatureAlgorithm DkimSignatureAlgorithm
- The algorithm used to sign the message.
- canonicalizationAlgorithm DkimCanonicalizationAlgorithm
- The algorithm used to canonicalize the message body.
- maxLength Int32
- The max length of the message body to hash or -1 to hash the entire message body.
- bodyHash String
- The expected message body hash encoded in base64.
Return Value
Booleanif the calculated body hash matches bodyHash; otherwise, .
Remarks
Verifies the hash of the message body.