From 3eef1036ee7a08d8dbd527f8892340db6cee675f Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Tue, 8 Sep 2020 16:03:49 +0200 Subject: General Clearing digits after code entry for more security. --- Software/pinlock.asm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Software/pinlock.asm') 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 -- cgit v1.2.1