mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-04 21:48:17 +00:00
ef02c4de5d
reduces the number of PIN iterations and avoids erasing the other storage bank -- if a test ever overruns, it will probably RSOD out, but that's unlikely to happen
17 lines
355 B
C
17 lines
355 B
C
|
|
#include <stdint.h>
|
|
|
|
uint32_t hamming_weight(uint32_t value);
|
|
|
|
#ifndef STORAGE_INSECURE_TESTING_MODE
|
|
#define STORAGE_INSECURE_TESTING_MODE 0
|
|
#endif
|
|
|
|
#if STORAGE_INSECURE_TESTING_MODE
|
|
#if PRODUCTION
|
|
#error "STORAGE_INSECURE_TESTING_MODE can't be used in production"
|
|
#else
|
|
#pragma message("STORAGE IS INSECURE DO NOT USE THIS IN PRODUCTION")
|
|
#endif
|
|
#endif
|