Click or drag to resize
MimeKit

DkimVerifierBaseVerifyBodyHash Method

Verify the hash of the message body.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
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

Boolean
true if the calculated body hash matches bodyHash; otherwise, false.
Remarks
Verifies the hash of the message body.
See Also