[Botan-devel] TRNG

Rickard Bondesson Rickard.Bondesson at iis.se
Thu Jan 8 10:49:57 EST 2009


What is, according to your opinion, the best way of incorporating a TRNG hardware device into a Botan RNG? I have an USB dongle called Araneus Alea I (http://www.araneus.fi/products-alea-eng.html) which is accessed through the libUSB. It generates true random data.

Should I:
Write a subclass to RNG which calls the dongle via libUSB.
Write an interface to the dongle similar to /dev/random and add it as an entropy source in one of the existing subclasses.
Write a subclass which talks to an interface similar to /dev/random. It takes the path to the device file as an argument to the RNG constructor. Then also write an interface to the dongle similar to /dev/random

The idea is to get as high random generating speed and entropy as possible.

// Rickard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 475 bytes
Desc: not available
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20090108/10d61596/attachment.sig>

More information about the botan-devel mailing list