You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two issues: First of all, coolkey get_random APDU does not work at all. I will need to figure out what is the problem here. Second issue is the handling of the get_random by the OpenSC, which is assuming that if user requested N bytes of random data, the driver will be able to return it.
Proposed Resolution
(1) There should be some showstopper, when the card fails to provide requested amount of data (returning length of zero), rather than optimistically cycling forever.
(2) The coolkey get_challenge needs to be fixed to work (or return some error if the random is not supported?)
(3) The p11tests should be extended with this test to avoid issues later.
Steps to reproduce
Try to generate random data with coolkey card with master (will cycle forever):
Problem Description
The get_challenge() function in coolkey applet is broken. Before 410cdf0 the function was returning some garbage from the heap:
After the refactoring (410cdf0), the card is cycling in the following code:
There are two issues: First of all, coolkey get_random APDU does not work at all. I will need to figure out what is the problem here. Second issue is the handling of the get_random by the OpenSC, which is assuming that if user requested N bytes of random data, the driver will be able to return it.
Proposed Resolution
p11tests
should be extended with this test to avoid issues later.Steps to reproduce
Try to generate random data with coolkey card with master (will cycle forever):
The text was updated successfully, but these errors were encountered: