|
| AI_FeedbackCipher | |
|
|
| |
Table |
|
| |
|
|
|
|
feedbackMethodName | Algorithm methods to include in chooser | Parameter Type | |
|
|
|
|
“ofb” | AM_OFB_DECRYPT; | ITEM that contains the | |
|
| initialization vector | |
“ofb_pipelined” | AM_OFB_PIPELINED_DECRYPT; | ITEM that contains the | |
|
| initialization vector | |
|
|
|
|
The CFB modes require a B_CFB_PARAMS structure:
typedef struct {
ITEM ivItem;
unsigned int transferSize;
}B_CFB_PARAMS;
Note: The initialization vector should be the same size as the block. In particular, the IV should be 8 bytes, except for the RC5 algorithm implemented with a
Key info types for keyObject in B_EncryptInit or B_DecryptInit:
Depends on cipher type, as follows:
Cipher | KIs |
DES | KI_Item, KI_DES8, KI_DES8Strong, KI_8Byte |
Triple DES | KI_Item, KI_DES24Strong, KI_24Byte |
DESX | KI_Item, KI_DES24Strong, KI_24Byte |
RC2 | KI_Item, KI_8Byte |
RC5 | KI_Item, which gives the address and length of the RC5 Key. |
RC6 | KI_Item |
|
|
C h a p t e r 2 A l g o r i t h m I n f o Ty p e s | 89 |