summaryrefslogtreecommitdiff
path: root/Software/pinlock.asm
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2020-09-08 16:03:49 +0200
committerLeonard Kugis <leonard@kug.is>2020-09-08 16:03:49 +0200
commit3eef1036ee7a08d8dbd527f8892340db6cee675f (patch)
treefe754e8e4b81cbbc7c4e6f31122804db567addbf /Software/pinlock.asm
parented051049e42a2c82a0788558eef7e038e59acb44 (diff)
General
Clearing digits after code entry for more security.
Diffstat (limited to 'Software/pinlock.asm')
-rw-r--r--Software/pinlock.asm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Software/pinlock.asm b/Software/pinlock.asm
index 6625465..5e9340c 100644
--- a/Software/pinlock.asm
+++ b/Software/pinlock.asm
@@ -803,7 +803,7 @@ handle_left:
andi tmp0, 0b00000011
dec tmp0
andi tmp0, 0b00000011
- andi ret0, 0b11111100
+ andi ret0, 0b01111100
or ret0, tmp0
pop tmp0
rjmp handle_end
@@ -813,7 +813,7 @@ handle_right:
andi tmp0, 0b00000011
inc tmp0
andi tmp0, 0b00000011
- andi ret0, 0b11111100
+ andi ret0, 0b01111100
or ret0, tmp0
pop tmp0
rjmp handle_end
@@ -864,6 +864,8 @@ handle_auth_submit:
pop tmp1
pop tmp0
pop ret0
+ ldi dig0, 0
+ ldi dig1, 0
ldi par0, HANDLE_STATE_AUTHED
rcall handle_state
pop par0