From 943f922668c634c6810ba5b44a4493d9fec6d0a2 Mon Sep 17 00:00:00 2001 From: c0de Date: Wed, 4 Oct 2023 16:30:40 -0500 Subject: [PATCH] Reset command chaining + extended length to 0x80 Turns out that this does not work on the omni-ring, despite documention saying it should --- src/dev/c0de/smartpgp/Constants.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dev/c0de/smartpgp/Constants.java b/src/dev/c0de/smartpgp/Constants.java index 8e0d5e4..fb7ae97 100644 --- a/src/dev/c0de/smartpgp/Constants.java +++ b/src/dev/c0de/smartpgp/Constants.java @@ -150,9 +150,9 @@ public final class Constants { (byte)0xC0, /* 1st byte: "methods supported" see ISO 7816-4 */ (byte)0x01, /* 2nd byte: "data coding byte" idem */ - /* 3rd byte: command chaining + extended length; Set to 0x80 if - extended length is not supported by card or reader */ - (byte)0xC0, + /* 3rd byte: command chaining + extended length; Set to 0xC0 if + extended length is supported by card and reader */ + (byte)0x80, (byte)0x05, /* status indicator byte : operational state */ (byte)0x90, /* SW1 */