Chapter 4

Using Crypto-C

Algorithms in Crypto-C

Whatever algorithm Crypto-C performs, it does so from an algorithm object. An algorithm object is used to hold information about an algorithm’s parameters and to keep a context during cryptographic operations.

To build an algorithm object, create an empty object with B_CreateAlgorithmObject. Then, use B_SetAlgorithmInfo to fill the object with the information necessary to distinguish it as an object performing the desired operation. The information for B_SetAlgorithmInfo consists of two elements: an Algorithm Info Type, or AI, and its specific accompanying info. This chapter gives a brief summary of the AIs categorized by function.

Chapter 2 of the Reference Manual gives a complete listing of AIs in alphabetical order. Each entry in the Reference Manual contains a description of information that must accompany the AI, including keys and algorithm methods.

1 0 1

Page 123
Image 123
RSA Security 5.2.2 manual Using Crypto-C, Algorithms in Crypto-C