The Session Chooser
The Session Chooser
Any
•The baseline software chooser, such as the one that is used in any
•The hardware chooser, that lists the
Once these choosers have been declared, you can combine them via a call to B_CreateSessionChooser. This creates the session chooser, which matches the
Creating the Session Chooser
The following example shows how a simple session chooser can be created. This chooser is set up to access Intel’s random number generator, which can then be used via the
Creating the Software Chooser
The software chooser is a conventional chooser, containing pointers to
B_ALGORITHM_METHOD *SOFTWARE_CHOOSER[] = { &AM_HW_RANDOM,
(B_ALGORITHM_METHOD *)NULL_PTR };
C h a p t e r 2 U s i n g I n t e l H a r d w a r e W i t h C r y p t o - C | 7 |