On Jan 27, 2011, at 3:26 PM, Frank Morgner wrote:

> On Thursday, January 27 at 01:57PM, Jean-Michel Pouré - GOOZE wrote:
>> Dear Friends,
>> 
>> Can OpenSC / libp11 or any framework access the random number generator
>> which is available in some cards, including the Feitian PKI?
> 
> The card driver can set a flag SC_CARD_CAP_RNG. I am not sure if this is
> done for your card. opensc-explorer can then get up to 128 bytes of
> randomness.
Actually not, C_GenerateRandom calls GET CHALLENGE (ISO 7816-4) no matter what 
the flags are for those "caps", which is only used to decide whether to 
advertise CKF_RNG in the token info or not.
For opensc-explorer, the flag has no meaning.

SC_CARD_CAP_RNG is mostly a relict.

-- 
@MartinPaljak.net
+3725156495

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to