TizenRT Public API  v2.0 M2
security_keymgr.h
1 /****************************************************************************
2  *
3  * Copyright 2019 Samsung Electronics All Rights Reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing,
12  * software distributed under the License is distributed on an
13  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14  * either express or implied. See the License for the specific
15  * language governing permissions and limitations under the License.
16  *
17  ****************************************************************************/
18 
19 #ifndef _SECURITY_API_KEYMGR_H__
20 #define _SECURITY_API_KEYMGR_H__
21 
22 #include "security_common.h"
23 
28 security_error keymgr_generate_key(security_handle hnd, security_key_type algo, const char *key_name);
29 security_error keymgr_set_key(security_handle hnd, security_key_type algo, const char *key_name, security_data *pubkey, security_data *prikey);
30 security_error keymgr_get_key(security_handle hnd, security_key_type algo, const char *key_name, security_data *pubkey_x, security_data *pubkey_y);
31 security_error keymgr_remove_key(security_handle hnd, security_key_type algo, const char *key_name);
32 
33 #endif // _SECURITY_API_KEYMGR_H__