←Select platform

GetMacTransferSyntax Method

Summary

Returns the Message Authentication Code (MAC) Calculation Transfer Syntax UID (0400,0010) used in the creation of the specified Digital Signature.

Syntax
C#
VB
C++
public string GetMacTransferSyntax( 
   DicomElement signatureItem 
) 
Public Function GetMacTransferSyntax( _ 
   ByVal signatureItem As DicomElement _ 
) As String 
public: 
String^ GetMacTransferSyntax(  
   DicomElement^ signatureItem 
)  

Parameters

signatureItem
The Digital Signatures Sequence Item that corresponds to the Digital Signature. This cannot be null.

Return Value

The MAC Calculation Transfer Syntax UID (0400,0010) used in the creation of the specified Digital Signature. The return value can be a null reference (Nothing in VB).

Remarks

The Digital Signatures Sequence Item of a Digital Signature should reference an item under the MAC Parameters Sequence associated with the Digital Signatures Sequence. The MAC Calculation Transfer Syntax UID (0400,0010) under the referenced MAC Parameters Sequence Item specifies the Transfer Syntax used in the calculation of the Message Authentication Code (MAC). The encrypted MAC is the digital signature itself. Call this method to obtain the value of this Data Element. If the Data Set was properly encoded, the return value will be a Transfer Syntax that Explicitly includes the Value Representation (VR) and uses Little Endian encoding.

The following methods can also be used to get information about the Digital Signature:

GetSignatureUID

GetSignatureDateTime

GetSignedElementsCount

GetSignedElement

GetMacAlgorithm

SaveCertificate

Example

For an example, refer to VerifySignature.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly