From 6e0de1df5faff16de84bb29a08b34d3ee388a6bf Mon Sep 17 00:00:00 2001 From: nagendra modadugu Date: Fri, 4 Mar 2016 18:07:33 -0800 Subject: [PATCH] CR50: move platform independent stub calls back to third_party Move _math__Comp and _math__uComp from stubs.c back to third_party/tpm2 as they are platform independent. BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524 CQ-DEPEND=CL:330855 TEST=compilation succeeds Change-Id: I2a1611e0b264720d71ac1fa0935cfa2498e04fdc Signed-off-by: nagendra modadugu Reviewed-on: https://chromium-review.googlesource.com/330951 Commit-Ready: Nagendra Modadugu Tested-by: Nagendra Modadugu Reviewed-by: Vadim Bendebury --- board/cr50/tpm2/stubs.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/board/cr50/tpm2/stubs.c b/board/cr50/tpm2/stubs.c index 2ffb1d40ba..56465f7eae 100644 --- a/board/cr50/tpm2/stubs.c +++ b/board/cr50/tpm2/stubs.c @@ -95,17 +95,6 @@ CRYPT_RESULT _cpri__TestKeyRSA( return CRYPT_FAIL; } -int _math__Comp( - const UINT32 aSize, // IN: size of a - const BYTE * a, // IN: a buffer - const UINT32 bSize, // IN: size of b - const BYTE * b // IN: b buffer - ) -{ - ecprintf("%s called\n", __func__); - return -1; -} - CRYPT_RESULT _math__Div( const TPM2B * n, // IN: numerator const TPM2B * d, // IN: denominator @@ -117,17 +106,6 @@ CRYPT_RESULT _math__Div( return CRYPT_FAIL; } -int _math__uComp( - const UINT32 aSize, // IN: size of a - const BYTE * a, // IN: a - const UINT32 bSize, // IN: size of b - const BYTE * b // IN: b - ) -{ - ecprintf("%s called\n", __func__); - return -1; -} - void __assert_func( const char *file, int line,