Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaCOS A40CR fails to finish base test (SUPPORTED ALGORITHMS) #257

Open
petrs opened this issue Dec 21, 2022 · 0 comments
Open

JavaCOS A40CR fails to finish base test (SUPPORTED ALGORITHMS) #257

petrs opened this issue Dec 21, 2022 · 0 comments
Assignees

Comments

@petrs
Copy link
Member

petrs commented Dec 21, 2022

Consistently fails at TYPE_RSA_PRIVATE_TRANSIENT_DESELECT constant, likely due to lack of memory issue.
If testing is restarted without jcalgtest applet reinstall, it will fail quickly again on early item which passed ok previously. If applet is reinstalled, it will continue again till TYPE_RSA_PRIVATE_TRANSIENT_DESELECT test

CommmandAPDU: 8 bytes, nc=3, ne=0
b0 75 20 00 03 16 04 00
ResponseAPDU: 29 bytes, SW=9000, elapsed=63 ms
20 00 ff 00 00 be 38 00 00 be 18 00 00 01 9d 00 00 00 9d 00 00 01 9d 00 00 00 9d 90 00
<<<<
RESPONSE: 32
TYPE_RSA_PRIVATE_TRANSIENT_RESET;yes;           0.066000;32;256;256

>>>>
CommmandAPDU: 5 bytes, nc=0, ne=256
b0 e2 00 00 00
ResponseAPDU: 2 bytes, SW=9000, elapsed=124 ms
90 00
<<<<
>>>>
CommmandAPDU: 8 bytes, nc=3, ne=0
b0 75 20 00 03 17 04 00
Exception in thread "main" javax.smartcardio.CardException: sun.security.smartcardio.PCSCException: Unknown error 0x45d
        at java.smartcardio/sun.security.smartcardio.ChannelImpl.doTransmit(ChannelImpl.java:226)
        at java.smartcardio/sun.security.smartcardio.ChannelImpl.transmit(ChannelImpl.java:89)
        at algtestjclient.CardMngr.sendAPDU(CardMngr.java:560)
        at algtestjclient.SingleModeTest.TestClassKeyBuilder(SingleModeTest.java:1359)
        at algtestjclient.SingleModeTest.testBasicAtOnce(SingleModeTest.java:1793)
        at algtestjclient.SingleModeTest.testAllAtOnce(SingleModeTest.java:1831)
        at algtestjclient.SingleModeTest.TestSingleAlg(SingleModeTest.java:789)
        at algtestjclient.AlgTestJClient.main(AlgTestJClient.java:262)
Caused by: sun.security.smartcardio.PCSCException: Unknown error 0x45d
        at java.smartcardio/sun.security.smartcardio.PCSC.SCardTransmit(Native Method)
        at java.smartcardio/sun.security.smartcardio.ChannelImpl.doTransmit(ChannelImpl.java:192)
        ... 7 more

Possible solution: implement restart of analysis from last known good item

@petrs petrs self-assigned this Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant