| // This file was extracted from the TCG Published |
| // Trusted Platform Module Library |
| // Part 4: Supporting Routines |
| // Level 00 Revision 01.16 |
| #ifndef _OSSL_CRYPTO_ENGINE_H |
| #define _OSSL_CRYPTO_ENGINE_H |
| #include <openssl/rand.h> |
| #include "CryptoEngine.h" |
| #define MAX_ECC_PARAMETER_BYTES 32 |
| #define MAX_2B_BYTES MAX((MAX_RSA_KEY_BYTES * ALG_RSA), \ |
| MAX((MAX_ECC_PARAMETER_BYTES * ALG_ECC), \ |
| #define assert2Bsize(a) pAssert((a).size <= sizeof((a).buffer)) |
| # include "RsaKeySieve.h" |
| # include "RsaKeySieve_fp.h" |
| // This is a structure to hold the parameters for the version of KDFa() used by the CryptoEngine(). This |
| // structure allows the state to be passed between multiple functions that use the same pseudo-random |
| #endif // _OSSL_CRYPTO_ENGINE_H |