Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
GetMacAlgorithm Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : GetMacAlgorithm Method




signatureItem
The Digital Signatures Sequence Item that corresponds to the Digital Signature. This cannot be null.
Returns the Message Authentication Code (MAC) Algorithm (0400,0015) used in the creation of the specified Digital Signature.

Syntax

Visual Basic (Declaration) 
Public Function GetMacAlgorithm( _
   ByVal signatureItem As DicomElement _
) As String
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim signatureItem As DicomElement
Dim value As String
 
value = instance.GetMacAlgorithm(signatureItem)
C# 
public string GetMacAlgorithm( 
   DicomElement signatureItem
)
Managed Extensions for C++ 
public: string* GetMacAlgorithm( 
   DicomElement* signatureItem
) 
C++/CLI 
public:
String^ GetMacAlgorithm( 
   DicomElement^ signatureItem
) 

Parameters

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

Return Value

The MAC Algorithm (0400,0015) used in the creation of the specified Digital Signature. The return value can be a null reference (Nothing in Visual Basic).

Example

For an example, refer to VerifySignature.

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 Algorithm (0400,0015) under the referenced MAC Parameters Sequence Item specifies the algorithm used in generating the Message Authentication Code (MAC). The encrypted MAC is the digital signature itself. Call this method to obtain the value of this Data Element; Possible values are: "RIPEMD160", "SHA1", and "MD5".

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

GetSignatureUID

GetSignatureDateTime

GetSignedElementsCount

GetSignedElement

GetMacTransferSyntax

SaveCertificate

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features