Returns the effective length (in bits) of the encryption key associated with the specified ciphersuite (56 for DES etc). This function is available in Medical Suite toolkits.
#include "ltdic.h"
L_LTDIC_API L_UINT32 L_DicomGetEncryptKeyLengthTLS(hNet, cipher)
Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function.
Value that indicates the ciphersuite for which to get the length of the encryption key.
Returns the effective length of the encryption key associated with the specified ciphersuite.
There are differences between the size of the key and the effective length. The security of a key is given by the effective length, not by the size (a DES key has 8 bytes, just like a DES40 key, but the first has 56 bits effective, and the second only 40.)
Win32, x64.
L_INT DicomGetEncryptKeyLengthTLSExample(L_VOID)
{
HDICOMNET hDicomNet = NULL;
L_INT nRet;
hDicomNet = L_DicomCreateNetExt(MAKE_IMAGE_PATH(TEXT("")), DICOM_SECURE_TLS, NULL);
nRet = L_DicomGetEncryptKeyLengthTLS(hDicomNet, TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA);
L_TCHAR strMsg[64];
wsprintf(strMsg, TEXT("Effective key length for TLS_DHE_RSA_WITH_DES_EDE_CBC_SHA is %d"), nRet);
MessageBox(NULL, strMsg, TEXT(""), MB_OK);
return DICOM_SUCCESS;
}
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