LegacyPduGetMacTag Method
|
Calculate MAC and attach it to PDU.
Namespace:
Guardtime.KSI.Service
Assembly:
ksi-net-api (in ksi-net-api.dll) Version: 3.11.534.0 (3.11.534.0)
Syntaxpublic static ImprintTag GetMacTag(
HashAlgorithm macAlgorithm,
byte[] key,
PduHeader header,
PduPayload payload
)
Public Shared Function GetMacTag (
macAlgorithm As HashAlgorithm,
key As Byte(),
header As PduHeader,
payload As PduPayload
) As ImprintTag
public:
static ImprintTag^ GetMacTag(
HashAlgorithm^ macAlgorithm,
array<unsigned char>^ key,
PduHeader^ header,
PduPayload^ payload
)
static member GetMacTag :
macAlgorithm : HashAlgorithm *
key : byte[] *
header : PduHeader *
payload : PduPayload -> ImprintTag
Parameters
- macAlgorithm
- Type: Guardtime.KSI.HashingHashAlgorithm
MAC algorithm - key
- Type: SystemByte
hmac key - header
- Type: Guardtime.KSI.ServicePduHeader
KSI header - payload
- Type: Guardtime.KSI.ServicePduPayload
KSI payload
Return Value
Type:
ImprintTag
See Also