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 DLL Help

L_DicomSetEncryptKeyISCL

Show in webframe

#include "ltdic.h"

L_LTDIC_API L_UINT32 L_DicomSetEncryptKeyISCL(hNet, nIndex, key)

HDICOMNET hNet;

/* handle to an existing DICOM Network */

L_UINT32 nIndex;

/* index */

L_UINT64 key;

/* encryption key */

Sets an encryption key at the specified index in the array.

Parameter

Description

hNet

Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function.

nIndex

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

key

A 64-bit integer, in little endian byte order, that represents an encryption key.

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. Refer to Return Codes.

Comments

The index of the encryption key is sent with every message sent from the sender to the receiver. Different encryption keys can be used for each message, as long as the keys of the sender and the receiver match.

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:

L_DicomCreateNet, L_DicomSetIndexForEncryptISCL, L_DicomSetDefaultSigningISCL, L_DicomSetDefaultEncryptionISCL, L_DicomSetAuthDataISCL, L_DicomSetMaxCommBlockLengthISCL, L_DicomSetMaxMessageLengthISCL, L_DicomSetMutualAuthAlgISCL, L_DicomSetMutualAuthKeyISCL, L_DicomSetIndexForMutualAuthISCL

Topics:

DICOM Net: Working with encryption key

 

Adding Security to a DICOM Connection

 

General Integrated Secure Communication Layer (ISCL) Information

Example

L_INT DicomSetEncryptKeyISCLExample(L_VOID)
{
   HDICOMNET hDicomNet;
   L_INT nRet;
   hDicomNet = L_DicomCreateNet (TEXT(""), DICOM_SECURE_ISCL);
   nRet = L_DicomSetEncryptKeyISCL(hDicomNet, 1, 0x0123456789ABCDEF);
   if (nRet != DICOM_SUCCESS)
      return nRet;
   // 64-bit value, in hexadecimal notation
   nRet = L_DicomSetIndexForEncryptISCL (hDicomNet, 1);
   // on the first position
   return nRet;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.