diff options
Diffstat (limited to 'board/cr50/tpm2/stubs.c')
-rw-r--r-- | board/cr50/tpm2/stubs.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/board/cr50/tpm2/stubs.c b/board/cr50/tpm2/stubs.c index 7d78d5cef4..08ea641d61 100644 --- a/board/cr50/tpm2/stubs.c +++ b/board/cr50/tpm2/stubs.c @@ -33,21 +33,6 @@ UINT16 _cpri__CompleteHMAC( return -1; } -CRYPT_RESULT _cpri__DecryptRSA( - UINT32 * dOutSize, // OUT: the size of the decrypted data - BYTE * dOut, // OUT: the decrypted data - RSA_KEY * key, // IN: the key to use for decryption - TPM_ALG_ID padType, // IN: the type of padding - UINT32 cInSize, // IN: the amount of data to decrypt - BYTE * cIn, // IN: the data to decrypt - TPM_ALG_ID hashAlg, // IN: in case this is needed for the scheme - const char *label // IN: in case it is needed for the scheme - ) -{ - ecprintf("%s called\n", __func__); - return CRYPT_FAIL; -} - CRYPT_RESULT _cpri__DrbgGetPutState( GET_PUT direction, int bufferSize, @@ -109,21 +94,6 @@ CRYPT_RESULT _cpri__EccPointMultiply( return CRYPT_FAIL; } -CRYPT_RESULT _cpri__EncryptRSA( - UINT32 * cOutSize, // OUT: the size of the encrypted data - BYTE * cOut, // OUT: the encrypted data - RSA_KEY * key, // IN: the key to use for encryption - TPM_ALG_ID padType, // IN: the type of padding - UINT32 dInSize, // IN: the amount of data to encrypt - BYTE * dIn, // IN: the data to encrypt - TPM_ALG_ID hashAlg, // IN: in case this is needed - const char *label // IN: in case it is needed - ) -{ - ecprintf("%s called\n", __func__); - return CRYPT_FAIL; -} - CRYPT_RESULT _cpri__GenerateKeyEcc( TPMS_ECC_POINT * Qout, // OUT: the public point TPM2B_ECC_PARAMETER * dOut, // OUT: the private scalar @@ -246,20 +216,6 @@ CRYPT_RESULT _cpri__SignEcc( return CRYPT_FAIL; } -CRYPT_RESULT _cpri__SignRSA( - UINT32 * sigOutSize, // OUT: size of signature - BYTE * sigOut, // OUT: signature - RSA_KEY * key, // IN: key to use - TPM_ALG_ID scheme, // IN: the scheme to use - TPM_ALG_ID hashAlg, // IN: hash algorithm for PKSC1v1_5 - UINT32 hInSize, // IN: size of digest to be signed - BYTE * hIn // IN: digest buffer - ) -{ - ecprintf("%s called\n", __func__); - return CRYPT_FAIL; -} - UINT16 _cpri__StartHMAC( TPM_ALG_ID hashAlg, // IN: the algorithm to use BOOL sequence, // IN: indicates if the state should be saved @@ -329,21 +285,6 @@ CRYPT_RESULT _cpri__ValidateSignatureEcc( return CRYPT_FAIL; } -CRYPT_RESULT _cpri__ValidateSignatureRSA( - RSA_KEY * key, // IN: key to use - TPM_ALG_ID scheme, // IN: the scheme to use - TPM_ALG_ID hashAlg, // IN: hash algorithm - UINT32 hInSize, // IN: size of digest to be checked - BYTE * hIn, // IN: digest buffer - UINT32 sigInSize, // IN: size of signature - BYTE * sigIn, // IN: signature - UINT16 saltSize // IN: salt size for PSS - ) -{ - ecprintf("%s called\n", __func__); - return CRYPT_FAIL; -} - int _math__Comp( const UINT32 aSize, // IN: size of a const BYTE * a, // IN: a buffer |