| // This file was extracted from the TCG Published |
| // Trusted Platform Module Library |
| // Part 4: Supporting Routines |
| // Level 00 Revision 01.16 |
| #include "CryptoEngine.h" |
| #include "OsslCryptoEngine.h" |
| static void Trap(const char *function, int line, int code); |
| FAIL_FUNCTION TpmFailFunction = (FAIL_FUNCTION)&Trap; |
| // This function is called if the caller to _cpri__InitCryptoUnits() doesn't provide a call back address. |
| // _cpri__InitCryptoUnits() |
| // This function calls the initialization functions of the other crypto modules that are part of the crypto engine |
| // for this implementation. This function should be called as a result of _TPM_Init(). The parameter to this |
| // function is a call back function it TPM.lib that is called when the crypto engine has a failure. |
| FAIL_FUNCTION failFunction |
| TpmFailFunction = failFunction; |
| // _cpri__StopCryptoUnits() |
| // This function calls the shutdown functions of the other crypto modules that are part of the crypto engine |
| // for this implementation. |
| // This function calls the startup functions of the other crypto modules that are part of the crypto engine for |
| // this implementation. This function should be called during processing of TPM2_Startup(). |
| return( _cpri__HashStartup() |