TizenRT Public API  v2.0 M2
security_ss.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_SS_H__
20 #define _SECURITY_API_SS_H__
21 
22 #include "security_common.h"
23 
24 typedef struct security_storage_file {
25  char name[20];
26  unsigned int attr;
28 
30 
34 security_error ss_read_secure_storage(security_handle hnd, const char *name, unsigned int offset, security_data *data);
35 security_error ss_write_secure_storage(security_handle hnd, const char *name, unsigned int offsest, security_data *data);
36 security_error ss_delete_secure_storage(security_handle hnd, const char *name);
37 security_error ss_get_size_secure_storage(security_handle hnd, const char *name, unsigned int *size);
38 security_error ss_get_list_secure_storage(security_handle hnd, security_storage_list *list);
39 
40 #endif // _SECURITY_API_SS_H__