[Pcsclite-muscle] How to reset a smartcard in CryptoTokenKit
Antoine FERRON
aferron at cardhoc.com
Wed Jun 14 05:29:15 PDT 2023
Did you try TKSmartCard.disconnect() ? I know in Windows SCardConnect() triggers an ATR on the card. Potentially on MacOS, some disconnect/connect methods on the card/token could perform what you want.
Antoine FERRON
CTO & Co-founder
CARDHOC Limited
aferron at cardhoc.com - https://cardhoc.com
-----Original Message-----
From: pcsclite-muscle <pcsclite-muscle-bounces at lists.infradead.org> On Behalf Of Frank Morgner
Sent: Wednesday, 14 June, 2023 13:24
To: pcsclite-muscle at lists.infradead.org
Subject: [Pcsclite-muscle] How to reset a smartcard in CryptoTokenKit
Hi!
I have verified a PIN in a smart card and like to delete this internal state of the card. Unfortunately, the card doesn't support this with a dedicated command, which is why I'd like to reset the card (cold/warm).
The CryptoTokenKit documentation
(https://developer.apple.com/documentation/cryptotokenkit) doesn't seem to have an API for that.
Does anyone have an idea how to implement this?
Thank you in advance,
Frank.
_______________________________________________
pcsclite-muscle mailing list
pcsclite-muscle at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/pcsclite-muscle
More information about the pcsclite-muscle
mailing list