2017-10-17 17:18:16 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) Pavol Rusnak, Jan Pochyla, SatoshiLabs
|
|
|
|
*
|
|
|
|
* Licensed under TREZOR License
|
|
|
|
* see LICENSE file for details
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
2017-12-14 23:06:09 +00:00
|
|
|
#include "secbool.h"
|
2017-12-14 16:14:15 +00:00
|
|
|
#include "py/obj.h"
|
2017-10-17 17:18:16 +00:00
|
|
|
|
2017-12-09 13:48:49 +00:00
|
|
|
void storage_init(void);
|
2017-12-14 15:27:18 +00:00
|
|
|
void storage_wipe(void);
|
2017-12-15 09:27:36 +00:00
|
|
|
secbool storage_unlock(const uint32_t pin, mp_obj_t callback);
|
2017-10-27 15:49:30 +00:00
|
|
|
secbool storage_has_pin(void);
|
2017-12-14 16:14:15 +00:00
|
|
|
uint32_t storage_pin_wait_time(void);
|
2017-12-15 09:27:36 +00:00
|
|
|
secbool storage_change_pin(const uint32_t pin, const uint32_t newpin, mp_obj_t callback);
|
2017-10-27 15:49:30 +00:00
|
|
|
secbool storage_get(uint16_t key, const void **val, uint16_t *len);
|
|
|
|
secbool storage_set(uint16_t key, const void *val, uint16_t len);
|