GetMacAlgorithm method (ILEADDicomDS Interface)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short GetMacAlgorithm();

Overview

Refer to Working with Digital Signatures.

Remarks

The GetMacAlgorithm method gets the Message Authentication Code (MAC) Algorithm (0400,0015) used in the creation of the Digital Signature specified by the CurrentElement property. The CurrentElement property must be updated with the corresponding Digital Signatures Sequence Item before calling the method.

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. You can use this method to obtain the value of this Data Element; the expected values are: "RIPEMD160", "SHA1", and "MD5".

In addition to this method, the following methods can be used to get information about the Digital Signature:

GetSignatureUID method

GetSignatureDateTime method

GetSignedElementsCount method

MoveSignedElement method

GetMacTransferSyntax method

SaveCertificate method

See Also

Elements:

MoveSignature method, FindSignature method, GetSignatureUID method, GetSignatureDateTime method, GetSignedElementsCount method, MoveSignedElement method, GetMacTransferSyntax method, SaveCertificate method, CurrentElement property, StringValueCount property, StringValues property

Topics:

Data Sets: Digital Signatures