mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
286ee0525c
This diff contains three changes. 1. Make timing isPinCorrect independent of storage.pin, to avoid timing attacks 2. Only update failed PIN counter if the user entered a PIN. Of course, the fail counter is still incremented, before the PIN is checked. 3. Don't cache the PIN, but just the fact that the PIN was entered. The cache should be in sync with storage.pin in any case. |
||
---|---|---|
.. | ||
protob | ||
coins.c | ||
coins.h | ||
crypto.c | ||
crypto.h | ||
debug.c | ||
debug.h | ||
fsm.c | ||
fsm.h | ||
layout2.c | ||
layout2.h | ||
Makefile | ||
messages.c | ||
messages.h | ||
pinmatrix.c | ||
pinmatrix.h | ||
protect.c | ||
protect.h | ||
recovery.c | ||
recovery.h | ||
reset.c | ||
reset.h | ||
signing.c | ||
signing.h | ||
storage.c | ||
storage.h | ||
transaction.c | ||
transaction.h | ||
trezor.c | ||
trezor.h | ||
usb.c | ||
usb.h |