L_DicomGetEncryptKeyLengthTLS
#include "ltdic.h"
L_UINT32 L_DicomGetEncryptKeyLengthTLS(hNet, cipher)
HDICOMNET hNet; |
/* handle to an existing DICOM Network */ |
L_CIPHERSUITE cipher; |
/* ciphersuite */ |
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.
Parameter |
Description |
hNet |
Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function. |
cipher |
Value that indicates the ciphersuite for which to get the length of the encryption key. |
Returns
Returns the effective length of the encryption key associated with the specified ciphersuite.
Comments
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.)
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: |
L_DicomGetAuthenticationAlgorithmTLS, L_DicomGetIntegrityAlgorithmTLS, L_DicomGetEncryptionAlgorithmTLS, L_DicomGetKeyExchangeAlgorithmTLS, L_DicomGetMutualAuthKeyLengthTLS |
Topics: |
|
|
|
|
|
|
Example
{
HDICOMNET hDicomNet;
int nRet;
// create and initialize hDicomNet
// . . .
nRet = L_DicomGetEncryptKeyLengthTLS(hDicomNet, TLS_DHE_RSA_WITH_DES_EDE_CBC_SHA);
char strMsg[64];
sprintf(strMsg, "Effective key length for TLS_DHE_RSA_WITH_DES_EDE_CBC_SHA is %d", nRet);
MessageBox(NULL, strMsg, "", MB_OK);
}