From 7a616f49bc266d9e360921cd523b51472db34674 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Tue, 24 Oct 2023 23:22:27 +0200
Subject: [PATCH] Test unlocking card with wrong PIN

---
 hwb1/card/test.txt | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/hwb1/card/test.txt b/hwb1/card/test.txt
index aa1ea09..041f787 100644
--- a/hwb1/card/test.txt
+++ b/hwb1/card/test.txt
@@ -8,10 +8,19 @@ send_apdu -sc 0 -APDU 00A40400080102030405060809
 
 // Locked Commands
 send_apdu -sc 0 -APDU 8002000002FFFE
+
+// Send Wrong PIN
+send_apdu -sc 0 -APDU 802000000431313131
+
+// Still Locked Commands
 send_apdu -sc 0 -APDU 800400000001
 
-// Unlock Card
-send_apdu -sc 0 -ADPU 8020
+// Unlock Card With Correct PIN
+send_apdu -sc 0 -APDU 802000000431323334
+
+// Now Unlocked Commands
+send_apdu -sc 0 -APDU 8002000002FFFE
+send_apdu -sc 0 -APDU 800400000001
 
 // Query Author Name
 send_apdu -sc 0 -APDU 80000000