 | DkimVerifierBaseVerifyBodyHash Method |
Verify the hash of the message body.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxprotected 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
Boolean if the calculated body hash matches
bodyHash; otherwise,
.
Remarks
Verifies the hash of the message body.
See Also