Hello,

On Jan 27, 2011, at 6:09 PM, Jean-Michel Pouré - GOOZE wrote:

> Le jeudi 27 janvier 2011 à 15:24 +0200, Martin Paljak a écrit :
>> Sure. A random number generator (with different properties)  is
>> available in virtually any PKI card. Have you tried it?
>> 
>> C_GenerateRandom 
> 
> Yes, I was wondering whether this could be available from OpenSC tools.

You asked about OpenSC/libp11, C_GenerateRandom is the most "close to core" API 
call in this case, bypassing libp11.

If you want to use tools (command line tools) you can try:

$ echo random 6 | opensc-explorer


> We were contacted by a free software project and they need a random
> number generator. I was wondering doing it the Unix way using a tool
> would be nice.

The Unix way is:

cat /dev/*random

> The guys may be able to contribute such a tool.
> Would you accept such an option in pkcs15-tool?
No, this is not PKCS#15 related.

Having the option to get random bytes from PCKS#11 modules would be useful 
though, so pkcs11-tool (or opensc-tool if you insist OpenSC API) could be 
considered.

Cheers,
Martin
-- 
@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