DES functions.
Security Builder Crypto supports three variations of DES:
DES, Triple-DES and DESX.
A DES parameters object, key object and operating context are required to
perform the DES algorithm. An RNG context is required if key generation will
be performed.
The following constants are defined in hudes.h
The variations of DES algorithms are indicated by:
-
SB_DES_DES
-
SB_DES_TDES
-
SB_DES_DESX
The mode of operation is indicated by:
-
SB_DES_ECB
-
SB_DES_CBC
-
SB_DES_CFB64
-
SB_DES_OFB64
The flag values for the use of the parity bit are:
-
SB_DES_PARITY_OFF
-
SB_DES_PARITY_ON
The flag values for weak key detection and prevention are:
-
SB_DES_WEAK_KEY_OFF
-
SB_DES_WEAK_KEY_ON
The size constants are:
-
SB_DES_BLOCK_SIZE
-
SB_DES_KEY_SIZE
-
SB_DES_IV_SIZE