000026113 - How to use DES in ECB mode

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000026113
Applies ToRSA BSAFE Crypto-C
IssueHow to use DES in ECB mode
ResolutionYou 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 ID6.0.3318135.2914371

Attachments

    Outcomes