←Select platform

GetMacAlgorithm Method

Summary

Returns the Message Authentication Code (MAC) Algorithm (0400,0015) used in the creation of the specified Digital Signature.

Syntax

C#
VB
WinRT C#
C++
public string GetMacAlgorithm(  
   Leadtools.Dicom.DicomElement signatureItem 
) 
Public Function GetMacAlgorithm( _ 
   ByVal signatureItem As Leadtools.Dicom.DicomElement _ 
) As String 
public string GetMacAlgorithm(  
   Leadtools.Dicom.DicomElement signatureItem 
) 
 function Leadtools.Dicom.DicomDataSet.GetMacAlgorithm(  
   signatureItem  
) 
public: 
String^ GetMacAlgorithm(  
   Leadtools.Dicom.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 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 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

Example

For an example, refer to VerifySignature.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Dicom Assembly
Click or drag to resize