L_DicomGetIndexForEncryptISCL

Summary

Gets the current index of the encryption key. This function is available in the PACS Imaging toolkits.

Syntax

#include "ltdic.h"

L_LTDIC_API L_UINT32 L_DicomGetIndexForEncryptISCL(hNet)

Parameters

HDICOMNET hNet

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

Returns

The index for the key used for encryption. This value must be between 1 and 8, inclusively, where 1 represents the first key in the array.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

L_INT DicomGetIndexForEncryptISCLExample(L_VOID) 
{ 
   HDICOMNET hDicomNet; 
   L_UINT32 nIndex; 
   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 
   if (nRet != DICOM_SUCCESS) 
      return nRet; 
 
   nIndex = L_DicomGetIndexForEncryptISCL(hDicomNet); 
 
   return DICOM_SUCCESS; 
} 
Help Version 23.0.2024.7.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.