mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
418f035811
TODO: finish change_pin
18 lines
527 B
C
18 lines
527 B
C
/*
|
|
* Copyright (c) Pavol Rusnak, Jan Pochyla, SatoshiLabs
|
|
*
|
|
* Licensed under TREZOR License
|
|
* see LICENSE file for details
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
bool storage_init(void);
|
|
bool storage_wipe(void);
|
|
bool storage_unlock(const uint8_t *pin, size_t len);
|
|
bool storage_has_pin(void);
|
|
bool storage_change_pin(const uint8_t *pin, size_t len, const uint8_t *newpin, size_t newlen);
|
|
bool storage_get(uint16_t key, const void **val, uint16_t *len);
|
|
bool storage_set(uint16_t key, const void *val, uint16_t len);
|