summaryrefslogtreecommitdiff
path: root/core/tee
diff options
context:
space:
mode:
Diffstat (limited to 'core/tee')
-rw-r--r--core/tee/tee_cryp_utl.c27
-rw-r--r--core/tee/tee_svc.c6
2 files changed, 0 insertions, 33 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) {
diff --git a/core/tee/tee_svc.c b/core/tee/tee_svc.c
index 3e43b916..4d1f2338 100644
--- a/core/tee/tee_svc.c
+++ b/core/tee/tee_svc.c
@@ -27,7 +27,6 @@
#include <util.h>
#include <kernel/tee_common_otp.h>
#include <kernel/tee_common.h>
-#include <kernel/tee_compat.h>
#include <tee_api_types.h>
#include <kernel/tee_ta_manager.h>
#include <utee_types.h>
@@ -69,11 +68,6 @@ void syscall_log(const void *buf __unused, size_t len __unused)
#endif
}
-TEE_Result syscall_reserved(void)
-{
- return TEE_ERROR_GENERIC;
-}
-
TEE_Result syscall_not_supported(void)
{
return TEE_ERROR_NOT_SUPPORTED;