Remove unused function 58/203058/1 submit/tizen/20190520.091210
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 9 Apr 2019 08:02:59 +0000 (10:02 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 9 Apr 2019 08:02:59 +0000 (10:02 +0200)
Change-Id: If5fee179ef06c03c0f3108f6a3769a4a60729222

ta/include/internal.h
ta/src/internal.c

index e592ec12d66cc5c90b2efacdddd1eb2d0ffed741..2863866b62ca9c04ec32d98edc2a885b003fedf4 100644 (file)
@@ -73,9 +73,6 @@ TEE_Result KM_CreateOperationWithKey(void *key, uint32_t type, uint32_t mode,
                                                                        uint32_t algo, uint32_t key_bits_size,
                                                                        TEE_OperationHandle *oper_hndl);
 
-TEE_Result KM_CreateOperationWithKeyId(void *key_id, uint32_t key_id_size, uint32_t mode,
-                                                                               uint32_t algo, TEE_OperationHandle *oper_hndl);
-
 TEE_Result KM_CreateDigestOperation(uint32_t algo, TEE_OperationHandle *oper_hndl);
 
 TEE_Result KM_SaveKey(void *data, size_t data_size, TEE_ObjectHandle key, void *objId,
index 11528d3491d28ee5d0c5cac7483ceb6be6691a23..740ff889163dc961df67d9057b1a6f249a346d38 100644 (file)
@@ -881,31 +881,6 @@ TEE_Result KM_CreateOperationWithKey(void *key, uint32_t type, uint32_t mode,
        return ret;
 }
 
-TEE_Result KM_CreateOperationWithKeyId(void *key_id, uint32_t key_id_size, uint32_t mode,
-                                                                               uint32_t algo, TEE_OperationHandle *oper_hndl)
-{
-       TEE_Result ret = TEE_SUCCESS;
-       TEE_ObjectHandle key = TEE_HANDLE_NULL;
-       TEE_ObjectInfo keyInfo;
-       uint32_t ks = 0;
-
-       ret = KM_OpenKey(key_id, key_id_size, &ks, &key);
-       if (TEE_SUCCESS != ret) {
-               LOG("Failed to open key: %x", ret);
-               return ret;
-       }
-
-       TEE_GetObjectInfo(key, &keyInfo);
-
-       ret = KM_CreateOperation(key, algo, mode, oper_hndl);
-       TEE_CloseObject(key);
-
-       if (TEE_SUCCESS != ret) {
-               LOG("Failed to create operation with key id: %x", ret);
-       }
-       return ret;
-}
-
 TEE_Result KM_CreateDigestOperation(uint32_t algo, TEE_OperationHandle *oper_hndl)
 {
        TEE_Result ret = TEE_SUCCESS;