Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS DICOM C++ Class Library Help

LDicomDS::GetSignedElement

Show in webframe

#include "ltdic.h"

pDICOMELEMENT LDicomDS::GetSignedElement(pSignatureItem, uIndex)

pDICOMELEMENT pSignatureItem;

/* pointer to a Digital Signatures Sequence Item */

L_UINT32 uIndex;

/* index of the signed Data Element */

Returns a pointer to the signed Data Element at the specified index.

Parameter

Description

pSignatureItem

Pointer to a DICOMELEMENT structure that specifies the Digital Signatures Sequence Item which corresponds to the Digital Signature. This cannot be NULL.

uIndex

Value that represents the index of the required signed Data Element. This should be a number from 0 to LDicomDS::GetSignedElementsCount(pSignatureItem) minus 1.

Returns

Pointer to the DICOMELEMENT structure that specifies the required signed Data Element. The return value can be NULL (e.g., if the specified index is invalid).

Comments

The Digital Signatures Sequence Item of a Digital Signature should reference an Item under the Message Authentication Code (MAC) Parameters Sequence associated with the Digital Signatures Sequence. The Data Elements Signed (0400,0020) under the referenced MAC Parameters Sequence Item specifies the Tags of the Data Elements covered by the Digital Signature. These Data Elements should be located at the same level as the MAC Parameters Sequence and the Digital Signatures Sequence.

The LDicomDS::GetSignedElementsCount function returns the number of signed Data Elements as specified by the Data Elements Signed (0400,0020). The GetSignedElement function searches the level at which the MAC Parameters Sequence appears for the Data Element with the Tag determined by the passed index and returns a pointer to the Data Element if it does exist; if it doesnt exist, the function returns NULL.

Note: In addition to the Data Elements specified by the Data Elements Signed (0400,0020), certain Data Elements under the Digital Signatures Sequence Item are always covered by the Digital Signature.

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

LDicomDS::GetSignatureUID

LDicomDS::GetSignatureDateTime

LDicomDS::GetMacTransferSyntax

LDicomDS::GetMacAlgorithm

LDicomDS::SaveCertificate

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

Platforms

Win32, x64

See Also

Functions:

LDicomDS::GetSignedElementsCount, LDicomDS::GetSignature, LDicomDS::FindSignature, LDicomDS::GetSignatureUID, LDicomDS::GetSignatureDateTime, LDicomDS::GetMacTransferSyntax, LDicomDS::GetMacAlgorithm, LDicomDS::SaveCertificate, Class Members

Topics:

Working with Digital Signatures

 

How to Disable the Automatic Loading of the default DICOM IOD Table

Example

For an example, refer to LDicomDS::VerifySignature.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.