#include "ltdic.h"
L_LTDIC_API L_UINT32 L_DicomSetEncryptKeyISCL(hNet, nIndex, key)
Sets an encryption key at the specified index in the array.
Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function.
Index into the array of encryption keys. This index is 1-based. Possible values for this index are between 1 and 8, inclusive.
A 64-bit integer, in little endian byte order, that represents an encryption key.
Value | Meaning |
---|---|
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. |
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
Win32, x64.
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;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document