This is a simple demonstration of two things, pulling random entropy out of a hardware smart card, and feeding that data into the Linux kernel pool using an ioctl call. Makes it possible for any Linux system to have a real hardware random number generator
C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.markdown
cardrand.c

README.markdown

Deprecated!!!!!

CardRand is old unmaintained code, it worked well at the time it was written but I've replaced it with something more stable, more maintainable and more widely usable. You can read more about it at the TokenTools repository.

You can read more about why CardRand is being deprecated here.

CardRand

A simple wrapper around libopensc for retrieving random data from a smart card HWRNG and feeding it into the kernel random pool using an ioctl. This makes it available to any application using /dev/random