Code Example

EncryptData uses DEMO_ALGORITHM_CHOOSER as the algorithmChooser argument to

B_EncryptInit. The algorithm chooser is described on page 10. EncryptData also uses (A_SURRENDER_CTX *)NULL_PTR as the surrenderContext argument to B_EncryptInit, B_EncryptUpdate, and B_EncryptFinal. As explained in Chapter 4, this tells Crypto-C to not call the surrender function. See the “The Surrender Function” on page 12 for an explanation of Crypto-C’s surrender routine.

C h a p t e r 1 I n t r o d u c t i o n

7

Page 17
Image 17
RSA Security 5 manual Code Example