A SERVICE OF

logo

AI_MD5WithRC2_CBCPad
128 RSA BSAFE Crypto-C Library Reference Manual
Format of info supplied to B_SetAlgorithmInfo:
pointer to a B_RC2_PBE_PARAMS structure:
This algorithm will accept a maximum of 1024 effective key bits for domestic use and
40 effective key bits for export. RSA Security Inc. recommends a minimum iteration
count of 1,000. However, for an additional byte or two of security the iteration should
be 2
8
to 2
16
.
Format of info returned by B_GetAlgorithmInfo:
pointer to a B_RC2_PBE_PARAMS structure (see above).
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:
AM_MD5 and AM_RC2_CBC_ENCRYPT for encryption or AM_RC2_CBC_DECRYPT for
decryption.
Key info types for keyObjec t in B_EncryptInit or B_DecryptInit:
KI_Item that gives the password.
Compatible representation:
AI_MD5WithRC2_CBCPadBER.
Output considerations:
During encryption, this AI pads the output. Thus, the total number of output bytes
typedef struct {
unsigned int effectiveKeyBits; /* effective key size in bits */
unsigned char *salt; /* pointer to 8-byte salt value */
unsigned int iterationCount; /* iteration count */
} B_RC2_PBE_PAR AMS;