000021671 - In RSA BSAFE Crypto-C ME  is there a way to toggle padding for encryption and decryption?

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 Number000021671
Applies ToRSA BSAFE Crypto-C ME
IssueIn RSA BSAFE Crypto-C ME, is there a way to toggle padding for encryption and decryption?
ResolutionIt is possible to turn padding off by calling R_CR_set_info with R_CR_INFO_ID_BLOCK_PADDING and an int variable passed in. If the variable is set to 0, then no padding will be done; if it's set to 1, then padding will be performed. For example:

    R_CR *crypto = NULL;
   
    int padding = 0;
   
    int status = R_ERROR_NONE;
   
    ....
   
    /* create your R_CR object */
   
    ...
   
    status = R_CR_set_info(crypto, R_CR_INFO_ID_BLOCK_PADDING, &padding);
Legacy Article IDa24157

Attachments

    Outcomes