Wirepas SDK
app_secure_storage.h
Go to the documentation of this file.
1 /* Copyright 2024 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
22 #ifndef _APP_SECURESTORAGE_H_
23 #define _APP_SECURESTORAGE_H_
24 
25 #include <stdlib.h>
26 #include <stdint.h>
27 
31 typedef enum
32 {
48 
49 
51 typedef enum
52 {
58 
68 
77 
86 
100 app_secure_storage_res_e App_SecureStorage_read(uint32_t area_id, uint32_t tag,
101  uint8_t * data,
102  size_t * max_amount);
103 
117  uint32_t area_id,
118  uint32_t tag,
119  const uint8_t * data,
120  size_t len,
122 
132  uint32_t tag);
133 
134 
135 #endif //_APP_SECURESTORAGE_H_
APP_SECURE_STORAGE_RES_NODRIVER
@ APP_SECURE_STORAGE_RES_NODRIVER
Definition: app_secure_storage.h:40
APP_SECURE_STORAGE_RES_INVALID_AREA
@ APP_SECURE_STORAGE_RES_INVALID_AREA
Definition: app_secure_storage.h:44
APP_SECURE_STORAGE_NO_ENCRYPT
@ APP_SECURE_STORAGE_NO_ENCRYPT
Definition: app_secure_storage.h:54
App_SecureStorage_write
app_secure_storage_res_e App_SecureStorage_write(uint32_t area_id, uint32_t tag, const uint8_t *data, size_t len, app_secure_storage_flags_e flags)
Write data to the secure storage area.
App_SecureStorage_init
app_secure_storage_res_e App_SecureStorage_init(uint32_t area_id)
Initialize secure storage area.
App_SecureStorage_check
app_secure_storage_res_e App_SecureStorage_check(uint32_t area_id)
Check if secure storage area exists.
app_secure_storage_flags_e
app_secure_storage_flags_e
Secure storage option flags.
Definition: app_secure_storage.h:51
APP_SECURE_STORAGE_RES_PARAM
@ APP_SECURE_STORAGE_RES_PARAM
Definition: app_secure_storage.h:42
App_SecureStorage_erase
app_secure_storage_res_e App_SecureStorage_erase(uint32_t area_id)
Erase secure storage area.
APP_SECURE_STORAGE_RES_ERROR
@ APP_SECURE_STORAGE_RES_ERROR
Definition: app_secure_storage.h:36
APP_SECURE_STORAGE_NO_AUTH
@ APP_SECURE_STORAGE_NO_AUTH
Definition: app_secure_storage.h:56
APP_SECURE_STORAGE_RES_OK
@ APP_SECURE_STORAGE_RES_OK
Definition: app_secure_storage.h:34
APP_SECURE_STORAGE_RES_BUSY
@ APP_SECURE_STORAGE_RES_BUSY
Definition: app_secure_storage.h:38
App_SecureStorage_delete
app_secure_storage_res_e App_SecureStorage_delete(uint32_t area_id, uint32_t tag)
Delete data from the secure storage area.
App_SecureStorage_read
app_secure_storage_res_e App_SecureStorage_read(uint32_t area_id, uint32_t tag, uint8_t *data, size_t *max_amount)
Read data from the secure storage area.
APP_SECURE_STORAGE_RES_INVALID_TAG
@ APP_SECURE_STORAGE_RES_INVALID_TAG
Definition: app_secure_storage.h:46
app_secure_storage_res_e
app_secure_storage_res_e
List of return code.
Definition: app_secure_storage.h:31