From a69ebba13d77449b92e804e5d07c128b2fc0edcf Mon Sep 17 00:00:00 2001 From: Francesco Persico Date: Mon, 13 Feb 2023 10:59:20 +0100 Subject: [PATCH] Fix reading of new CIE on Android (#48) --- android/src/main/java/it/ipzs/cieidsdk/nfc/Ias.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/it/ipzs/cieidsdk/nfc/Ias.kt b/android/src/main/java/it/ipzs/cieidsdk/nfc/Ias.kt index 64b7150..4142227 100644 --- a/android/src/main/java/it/ipzs/cieidsdk/nfc/Ias.kt +++ b/android/src/main/java/it/ipzs/cieidsdk/nfc/Ias.kt @@ -896,8 +896,8 @@ internal class Ias constructor(val isoDep: IsoDep) { 0x80.toByte()) val response = sendApdu(getKeyDoup, getKeyDuopData, null) val asn1 = Asn1Tag.parse(response.response, true) - caModule = asn1!!.child(0).child(0).Child(0, 0x81.toByte()).data - caPubExp = asn1.child(0).child(0).Child(1, 0x82.toByte()).data + caModule = asn1!!.child(0).child(0).childWithTagID(byteArrayOf(0x81.toByte()))!!.data + caPubExp = asn1.child(0).child(0).childWithTagID(byteArrayOf(0x82.toByte()))!!.data baExtAuth_PrivExp = byteArrayOf( 0x18, 0x6B,