#include <alg.h>
Inheritance diagram for Algorithm:

Usage notes: Use Algorithm::isErrorState() to determine if the CDK is in the hard error state i.e., if a crypto function has failed by returning a null or empty string. Use Algorithm::SetErrorState() to place the CDK into the hard error state. This method is used internally and is unlikely to be called by an application. Recommendations for strict FIPS 140-1 compliance: All methods may be used by a FIPS 140-1 compliant application. There are no restrictions regarding the methods and functions defined in this file.
Public Types | |
| UNINIT = -1 | |
| uninitialized | |
| INIT = 0 | |
| initialized | |
| FINAL = 1 | |
| final | |
| enum | STATE { UNINIT = -1, INIT = 0, FINAL = 1 } |
| Algorithm states. More... | |
Public Member Functions | |
| Algorithm () | |
| Constructor. | |
| virtual | ~Algorithm () |
| Destructor. | |
| void | SetState (enum STATE st) |
| Set this algorithm's state indicator. | |
| int | GetState (void) const |
| Get this algorithm's state indicator. | |
Static Public Member Functions | |
| static int | isErrorState () |
| Predicate used to test the internal error state indicator. | |
| static void | SetErrorState (char *lpszMessage=0) |
| Set internal error state indicator to true. | |
| Algorithm | ( | ) |
Constructor.
| int GetState | ( | void | ) | const |
Get this algorithm's state indicator.
| static int isErrorState | ( | ) | [static] |
Predicate used to test the internal error state indicator.
| static void SetErrorState | ( | char * | lpszMessage = 0 |
) | [static] |
Set internal error state indicator to true.
| lpszMessage | pointer to associated error message |
| void SetState | ( | enum STATE | st | ) |
Set this algorithm's state indicator.
| st | the new algorithm state: UNINIT, INIT, or FINAL. |
| ISC Cryptographic Development Kit - User's Guide | |
| Questions? E-mail ISC technical support | |
| Copyright© 2002-2006 Information Security Corp. All rights reserved. |