public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* random.c Entropy pool enhancements for external TRNG connection.
@ 2004-09-02 20:18 Lorenzo Hernandez Garcia-Hierro
  0 siblings, 0 replies; only message in thread
From: Lorenzo Hernandez Garcia-Hierro @ 2004-09-02 20:18 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1920 bytes --]

Hi,
I'm working together with a friend of my secondary school on a True
Random Number Generator,following the schemas of Fourmilab HotBits TRNG,
hardware based and connected by the standard serial connector.
The idea is to provide a big quality random numbers to inject in the
kernel entropy pool, receiving all of them by the serial cable.
I'm trying to modify random.c to implement some of these things but i'm
a bit stuck (i'm not a C master, i'm just 15 old and learning it since 2
months).

This is what i have done yet:
=====
/******************************************************* 
 * 		True Random Number Generator (TRNG) routines		     *
 *******************************************************
 * Author: Lorenzo Hernández García-Hierro <lorenzo@gnu.org>
 * Description:
 * These routines are intended to make use of an external TRNG device
 * by the COM1 port (serial conector), adding more strong entropy to the
 * pool.These routines have been tested using the Fourmilab HotBits
Atomic
 * TRNG, which uses a Geiger counter to make true random bits based on
 * the atoms' (unpredictable) destruction times.
 */
 
void add_trng_randomless(unsigned char trngflow)
{
	[HERE SHOULD COME THE STUFF TO GET THE DATA FROM THE TRNG]
	add_timer_randomness(&trng_timer_state, trngflowsc);
}

/*****************************************************
 * 	End of True Random Number Generator (TRNG) routines		 *
 *****************************************************/

memset(&trng_timer_state, 0, sizeof(struct timer_rand_state));
====

trngflow should be the data that comes from the TRNG, also i want to
know if i should add the symbols in the end of random.c, for
add_trng_randomless function as each other (blk,irq,kb,mouse).

Is anybody interested in this project?
I will appreciate any idea or tip.

Best regards,
-- 
Lorenzo Hernandez Garcia-Hierro <lorenzo@gnu.org>

[-- Attachment #2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-02 20:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-02 20:18 random.c Entropy pool enhancements for external TRNG connection Lorenzo Hernandez Garcia-Hierro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox