LDicomNet::SetMutualAuthKeyISCL

#include "ltdic.h"

L_UINT32 LDicomNet::SetMutualAuthKeyISCL(nIndex, nKey);

L_UINT32 nIndex;

/* index */

L_UINT64 nKey;

/* authentication key */

Sets a mutual authentication key at the specified index in the array. This function is available in the Medical Suite toolkits.

Parameter

Description

nIndex

Index into the array of authentication keys. This index is 1-based. Possible values for this index are between 1 and 8, inclusive.

nKey

A 64-bit integer, in little endian byte order, that represents an authentication key used during the mutual authentication process.

Returns

DICOM_SUCCESS

Success. The specified key was set in the specified position in the keys array.

DICOM_ERROR_PARAMETER

A parameter error occurred. nIndex was 0 or bigger than 8.

Comments

One of eight mutual authentication keys can be used for authenticating a peer. For more information, refer to Adding Security to a DICOM Connection and the ISCL standard.

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

See Also

Functions:

LDicomNet::SetDefaultSigningISCL, LDicomNet::SetDefaultEncryptionISCL, LDicomNet::SetAuthDataISCL, LDicomNet::SetMaxCommBlockLengthISCL, LDicomNet::SetMaxMessageLengthISCL, LDicomNet::SetMutualAuthAlgISCL, LDicomNet::SetIndexForMutualAuthISCL, LDicomNet::SetEncryptKeyISCL, LDicomNet::SetIndexForEncryptISCL, Class Members

Topics:

Adding Security to a DICOM Connection

 

General Integrated Secure Communication Layer (ISCL) Information

Example

{
   // LMyDicomNet is derived from LDicomNet
   LMyDicomNet *pDicomNet;
   pDicomNet = new LMyDicomNet("", DICOM_SECURE_ISCL);
   pDicomNet->SetMutualAuthKeyISCL(1, 0x0123456789ABCDEF);
   // 64-bit value, in hexadecimal notation
}