
The Algorithm Chooser
The Algorithm Chooser
The algorithm chooser lists all the algorithm methods that
The BDEMO Algorithm Chooser
The BDEMO demonstration application supplied with
Defining an Algorithm Chooser
The main reason for an application to define its own algorithm chooser is to make the executable image smaller. The linker links in the object code for all algorithm methods listed in the algorithm chooser. To illustrate, an application that only uses MD5 and
An algorithm chooser is an array of pointers to B_ALGORITHM_METHOD values. The last element of the array must be (B_ALGORITHM_METHOD *)NULL_PTR. The following is an example that defines an algorithm chooser called MD5_DES_CBC_CHOOSER for the MD5 and
B_ALGORITHM_METHOD *MD5_DES_CBC_CHOOSER[] = { &AM_MD5,
&AM_DES_CBC_ENCRYPT,
&AM_DES_CBC_DECRYPT,
(B_ALGORITHM_METHOD *)NULL_PTR };
For additional examples of algorithm choosers, see “Algorithm Choosers” on page 118 of the User’s Manual.
Notice that encryption/decryption algorithm methods (AMs) such as
1 0 | R S A B S A F E C r y p t o - C L i b r a r y R e f e r e n c e M a n u a l |