aboutsummaryrefslogtreecommitdiff
path: root/core/tee/tee_svc_cryp.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/tee/tee_svc_cryp.c')
-rw-r--r--core/tee/tee_svc_cryp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/tee/tee_svc_cryp.c b/core/tee/tee_svc_cryp.c
index 6ab14a4..0ca62be 100644
--- a/core/tee/tee_svc_cryp.c
+++ b/core/tee/tee_svc_cryp.c
@@ -1462,8 +1462,6 @@ TEE_Result tee_svc_obj_generate_key(
if (res != TEE_SUCCESS)
return res;
- /* Force the last bit to have exactly a value on byte_size */
- ((char *)key)[sizeof(key->key_size) + byte_size - 1] |= 0x80;
key->key_size = byte_size;
/* Set bits for all known attributes for this object type */