summaryrefslogtreecommitdiff
path: root/core/tee/tee_cryp_utl.c
diff options
context:
space:
mode:
authorJoakim Bech <joakim.bech@linaro.org>2016-01-08 14:13:47 +0100
committerJoakim Bech <joakim.bech@linaro.org>2016-01-11 15:46:51 +0100
commit8b4ed803d3df96ae3ba8e5f79ecaa59d8e504f14 (patch)
tree869e9edfcb35538e9b90ecdfad668de675c50817 /core/tee/tee_cryp_utl.c
parentae3d06c1e64d51ea2edf20f485fdcca718b18ba9 (diff)
Remove unused functions
After finding a set of functions potentially not used anywhere (using gcc -Wl,--print-gc-sections) I did grep'd for those functions and the ones that couldn't be found to be used anywhere has been deleted (although utility functions, LibTomCrypt etc hasn't been touched). Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/tee/tee_cryp_utl.c')
-rw-r--r--core/tee/tee_cryp_utl.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/core/tee/tee_cryp_utl.c b/core/tee/tee_cryp_utl.c
index 36721247..f0b7da35 100644
--- a/core/tee/tee_cryp_utl.c
+++ b/core/tee/tee_cryp_utl.c
@@ -134,33 +134,6 @@ out:
return res;
}
-TEE_Result tee_hash_check(uint32_t algo, const uint8_t *hash,
- size_t hash_size, const uint8_t *data,
- size_t data_size)
-{
- TEE_Result res;
- uint8_t digest[TEE_MAX_HASH_SIZE];
- size_t digestlen;
-
- res = tee_hash_get_digest_size(algo, &digestlen);
- if (res != TEE_SUCCESS)
- return TEE_ERROR_BAD_PARAMETERS;
- if ((hash_size == 0) ||
- (digestlen < hash_size) ||
- (digestlen > TEE_MAX_HASH_SIZE))
- return TEE_ERROR_BAD_PARAMETERS;
-
- res = tee_hash_createdigest(algo, data, data_size, digest,
- sizeof(digest));
- if (res != TEE_SUCCESS)
- return res;
-
- if (buf_compare_ct(digest, hash, hash_size) != 0)
- return TEE_ERROR_SECURITY;
-
- return TEE_SUCCESS;
-}
-
TEE_Result tee_mac_get_digest_size(uint32_t algo, size_t *size)
{
switch (algo) {