Click or drag to resize

PduValidateMac Method

Validate PDU against given MAC.

Namespace:  Guardtime.KSI.Service
Assembly:  ksi-net-api (in ksi-net-api.dll) Version: 3.11.534.0 (3.11.534.0)
Syntax
public static bool ValidateMac(
	byte[] pduBytes,
	ImprintTag mac,
	byte[] key
)

Parameters

pduBytes
Type: SystemByte
PDU encoded as byte array
mac
Type: Guardtime.KSI.ParserImprintTag
MAC
key
Type: SystemByte
message key

Return Value

Type: Boolean
true if MAC is valid
See Also