AI_FeedbackCipher

Type of padding schemes available:

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.

 

 

 

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.

Table 2-1Algorithm methods for block ciphers

 

Algorithm methods to

 

 

encryptionMethodName

include in chooser

Parameters

Key Size

 

 

 

 

Encryption

 

 

 

“des”AM_DES_ENCRYPT;

“des_ede”AM_DES_EDE_ENCRYPT;

“desx”AM_DESX_ENCRYPT;

“rc2”AM_RC2_ENCRYPT;

null

8 bytes

null

24 bytes

null

24 bytes

Pointer to an

1 - 128 bytes

A_RC2_PARAMS structure

 

“rc5”

AM_RC5_ENCRYPT;

Pointer to an

0 - 255 bytes;

 

 

A_RC5_PARAMS structure

32-bit word

“rc5_64”

AM_RC5_64ENCRYPT;

Pointer to an

0 - 255 bytes;

 

 

A_RC5_PARAMS structure

64-bit word

"rc6"

AM_RC6_ENCRYPT;

Pointer to an

 

 

 

A_RC6_PARAMS structure

 

 

 

 

 

8 6

R S A B S A F E C r y p t o - C L i b r a r y R e f e r e n c e M a n u a l

Page 96
Image 96
RSA Security 5 manual Type of padding schemes available