KI_DES8Strong
KI_DES8

KI_8Byte

KI_8Byte

Purpose:

This KI allows you to specify a generic 8-byte key for a symmetric encryption algorithm that may be RC2, DES, or any other symmetric algorithm. For DES

encryption, there exist more specific variants of 8-byte key info types: and

.

Type of information this allows you to use:

an 8-byte value for symmetric keys such as DES and RC2. Note that KI_DES8Strong is usually used for a DES key because it sets the DES parity and checks for weak DES keys.

Format of info supplied to B_SetKeyInfo:

pointer to an unsigned char array that holds the 8 bytes.

Format of info returned by B_GetKeyInfo:

pointer to an unsigned char array that holds the 8 bytes.

Can get this info type if key object already has:

KI_8Byte, KI_Item (if the length of the ITEM is 8), or KI_DES8.

C h a p t e r 3 K e y I n f o Ty p e s

247

Page 257
Image 257
RSA Security 5 manual KI8Byte, Pointer to an unsigned char array that holds the 8 bytes