summaryrefslogtreecommitdiff
path: root/board/cr50/tpm2/stubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cr50/tpm2/stubs.c')
-rw-r--r--board/cr50/tpm2/stubs.c115
1 files changed, 1 insertions, 114 deletions
diff --git a/board/cr50/tpm2/stubs.c b/board/cr50/tpm2/stubs.c
index 7b6a3a8faf..b723c529b9 100644
--- a/board/cr50/tpm2/stubs.c
+++ b/board/cr50/tpm2/stubs.c
@@ -4,120 +4,7 @@
*/
#include "Global.h"
-#include "_TPM_Init_fp.h"
-#include "CryptoEngine.h"
-
-
-CRYPT_RESULT _cpri__AESDecryptCBC(
- BYTE * dOut, // OUT: the decrypted data
- UINT32 keySizeInBits, // IN: key size in bit
- BYTE * key, // IN: key buffer. The size of this buffer in
- // bytes is (keySizeInBits + 7) / 8
- BYTE * iv, // IN/OUT: IV for decryption. The size of this
- // buffer is 16 byte
- UINT32 dInSize, // IN: data size
- BYTE * dIn) // IN: data buffer
-{
- ecprintf("%s called\n", __func__);
- return CRYPT_FAIL;
-}
-
-CRYPT_RESULT _cpri__AESDecryptCFB(
- BYTE * dOut, // OUT: the decrypted data
- UINT32 keySizeInBits, // IN: key size in bit
- BYTE * key, // IN: key buffer. The size of this buffer in
- // bytes is (keySizeInBits + 7) / 8
- BYTE * iv, // IN/OUT: IV for decryption.
- UINT32 dInSize, // IN: data size
- BYTE * dIn) // IN: data buffer
-{
- ecprintf("%s called\n", __func__);
- return CRYPT_FAIL;
-}
-
-CRYPT_RESULT _cpri__AESDecryptECB(
- BYTE * dOut, // OUT: the clear text data
- UINT32 keySizeInBits, // IN: key size in bit
- BYTE * key, // IN: key buffer. The size of this buffer in
- // bytes is (keySizeInBits + 7) / 8
- UINT32 dInSize, // IN: data size
- BYTE * dIn // IN: cipher text buffer
- )
-{
- ecprintf("%s called\n", __func__);
- return CRYPT_FAIL;
-}
-
-CRYPT_RESULT _cpri__AESEncryptCBC(
- BYTE * dOut, // OUT:
- UINT32 keySizeInBits, // IN: key size in bit
- BYTE * key, // IN: key buffer. The size of this buffer in
- // bytes is (keySizeInBits + 7) / 8
- BYTE * iv, // IN/OUT: IV for decryption.
- UINT32 dInSize, // IN: data size (is required to be a multiple
- // of 16 bytes)
- BYTE * dIn // IN: data buffer
- )
-{
- ecprintf("%s called\n", __func__);
- return CRYPT_FAIL;
-}
-
-CRYPT_RESULT _cpri__AESEncryptCFB(
- BYTE * dOut, // OUT: the encrypted
- UINT32 keySizeInBits, // IN: key size in bit
- BYTE * key, // IN: key buffer. The size of this buffer in
- // bytes is (keySizeInBits + 7) / 8
- BYTE * iv, // IN/OUT: IV for decryption.
- UINT32 dInSize, // IN: data size
- BYTE * dIn // IN: data buffer
- )
-{
- ecprintf("%s called\n", __func__);
- return CRYPT_FAIL;
-}
-
-CRYPT_RESULT _cpri__AESEncryptCTR(
- BYTE * dOut, // OUT: the encrypted data
- UINT32 keySizeInBits, // IN: key size in bit
- BYTE * key, // IN: key buffer. The size of this buffer in
- // bytes is (keySizeInBits + 7) / 8
- BYTE * iv, // IN/OUT: IV for decryption.
- UINT32 dInSize, // IN: data size
- BYTE * dIn // IN: data buffer
- )
-{
- ecprintf("%s called\n", __func__);
- return CRYPT_FAIL;
-}
-
-CRYPT_RESULT _cpri__AESEncryptECB(
- BYTE * dOut, // OUT: encrypted data
- UINT32 keySizeInBits, // IN: key size in bit
- BYTE * key, // IN: key buffer. The size of this buffer in
- // bytes is (keySizeInBits + 7) / 8
- UINT32 dInSize, // IN: data size
- BYTE * dIn // IN: clear text buffer
- )
-{
- ecprintf("%s called\n", __func__);
- return CRYPT_FAIL;
-}
-
-CRYPT_RESULT _cpri__AESEncryptOFB(
- BYTE * dOut, // OUT: the encrypted/decrypted data
- UINT32 keySizeInBits, // IN: key size in bit
- BYTE * key, // IN: key buffer. The size of this buffer in
- // bytes is (keySizeInBits + 7) / 8
- BYTE * iv, // IN/OUT: IV for decryption. The size of this
- // buffer is 16 byte
- UINT32 dInSize, // IN: data size
- BYTE * dIn // IN: data buffer
- )
-{
- ecprintf("%s called\n", __func__);
- return CRYPT_FAIL;
-}
+#include "CryptoEngine.h"
CRYPT_RESULT _cpri__C_2_2_KeyExchange(
TPMS_ECC_POINT * outZ1, // OUT: a computed point