Chapter 1 Introduction 7
Code Example
EncryptData
uses DEMO_ALGORITHM_CHOOSER as the
algorithmChooser
argument to
B_EncryptInit. The algorithm chooser is described on page10. 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 page12 for an
explanation of Crypto-C’s surrender routine.