|Applies To||RSA BSAFE Crypto-C|
|Issue||How to use DES in ECB mode|
|Resolution||You can perform ECB mode encryption by using DES CBC with an initialization vector of all zeros. This will make the CBC encryption act like ECB encryption. After encrypting a block of data with B_EncryptUpdate(), it is necessary to call B_EncryptFinal(). This allows BSAFE to reset the state of the cipher to what it was before encryption began. This is necessary to allow the initialization vector to be reset after each block of data is encrypted.|
If you have RSA BSAFE Crypto-C 4.0 or later, you can use AI_FeedbackCipher with "ecb" as the B_BLK_CIPHER_W_FEEDBACK_PARAMS.feedbackMethodName.
|Legacy Article ID||6.0.3318135.2914371|