AI_FeedbackCipher
86 RSA BSAFE Crypto-C Library Reference Manual
Type of padding schemes available:
Crypto-C procedures to use with algorithm object:
B_EncryptInit, B_EncryptUpdate, B_EncryptFinal, B_DecryptInit,
B_DecryptUpdate, and B_DecryptFinal. You may pass (B_ALGORITHM_OBJ)NULL_PTR
for all
randomAlgorithm
arguments.
Algorithm methods to include in application’s algorithm chooser:
the block cipher AM and the feedback mode AM specified by
encryptionMethodName
and
feedbackMethodName
, respectively.
Padding Scheme Reference String Comments
Standard CBC padding “pad”
No padding “nopad” Input length must be a multiple of cipher
block length (= 8 for all but rc5_64)
Stream “stream” Only available when using CFB in 1-bit and 8-
bit modes.
Table 2-1 Algorithm methods for block ciphers
encryptionMethodName
Algorithm methods to
include in chooser Parameters Key Size
Encryption
“des” AM_DES_ENCRYPT; null 8 bytes
“des_ede” AM_DES_EDE_ENCRYPT; null 24 bytes
“desx” AM_DESX_ENCRYPT; null 24 bytes
“rc2” AM_RC2_ENCRYPT; Pointer to an
A_RC2_PARAMS structure
1 - 128 bytes
“rc5” AM_RC5_ENCRYPT; Pointer to an
A_RC5_PARAMS structure
0 - 255 bytes;
32-bit word
“rc5_64” AM_RC5_64ENCRYPT; Pointer to an
A_RC5_PARAMS structure
0 - 255 bytes;
64-bit word
"rc6" AM_RC6_ENCRYPT; Pointer to an
A_RC6_PARAMS structure