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
48
49
58
68
77
86
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_e App_SecureStorage_init(uint32_t area_id)
Initialize secure storage area.
app_secure_storage_flags_e
Secure storage option flags.
@ APP_SECURE_STORAGE_NO_AUTH
@ APP_SECURE_STORAGE_NO_ENCRYPT
app_secure_storage_res_e App_SecureStorage_check(uint32_t area_id)
Check if secure storage area exists.
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_secure_storage_res_e
List of return code.
@ APP_SECURE_STORAGE_RES_INVALID_TAG
@ APP_SECURE_STORAGE_RES_OK
@ APP_SECURE_STORAGE_RES_INVALID_AREA
@ APP_SECURE_STORAGE_RES_BUSY
@ APP_SECURE_STORAGE_RES_ERROR
@ APP_SECURE_STORAGE_RES_NODRIVER
@ APP_SECURE_STORAGE_RES_PARAM
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_e App_SecureStorage_erase(uint32_t area_id)
Erase secure storage area.
app_secure_storage_res_e App_SecureStorage_delete(uint32_t area_id, uint32_t tag)
Delete data from the secure storage area.