OSKit Entropy Pool Hacks

ddavies@ddavies.net
Chinese character for entropy (This Chinese symbol means "entropy")

Savannah CVS

09-Jul-2003

The best way to get the entropy hacks for GNU/Hurd running on GNUMach 2.0 (aka OSKIT/Mach) is to use the cvs server at savannah.gnu.org. Here are the directions for building GNUMach 2.0.

Make sure modules.x86.pc (haven't even tried ARM, no HW) has the "random" module uncommented. You'll need a GNUmake make line vaguely like this:

make kernel-ide+entropy_random+ethernet_tulip

Once you have GNUMach 2.0 running you can try out the pool by using the entropystat program. If you simply say entropystat (without further arguments) you'll see an estimate of how many bytes are in the pool printed to stdout.

The -d N option attempts to drain N bytes from the pool and print them to stdout. Counts of estimated bytes in the pool are printed on stdout both before and after the drian attempt.

The -w F option writes the bytes of the file F (a pathname) to the random pool. Estimated entropy counts are printed ala -d.

There is also a Hurd translator that is limping along. I will make it available soon - after I've debugged it a little more. This is based on Marcus Brinkmann's user space translator for GNUMach 1.x. My plan is to have the translator detect at start up time which GNUMach major version it's running under. If that's GNUMach 1.x we use the user space entropy pool. If it's 2.x we use the kernel space entropy pool.

WARNING: Don't trust this entropy. There are definately races in GNUMach 2.0 that might be exploited and of course it should go without saying that I am not a guy who understands entropy or cryptography (I have zero credentials!). That said, the output, when I get it without crashing too soon, looks random to me. I'll post a picture of a plot of a long sequence of numbers from the pool soon, and we'll see how that looks...


A comitter for the oskit project at U Utah said he'd take my changes for the next release of OSKit, but since GNU have forked oskit anyway I don't keep my patch up to date. I will try to synch up with the Utah people when/if they do another oskit release (do not hold your breath!). There are bug fixes that aren't here in the savannah CVS tree and you'd likely be better off using that.

The stuff below is obsolete. Use the savannah directions above.

??-???-2003

This patch adds the Linux 2.2.12 random device to the St. Patrick's Day release of OSkit. As is, only Linux devices contribute entropy with this release although the bottom half API is expected to be adequate for interfacing with other OSKit drivers as well (ie FreeBSD).

There are a couple of example kernels that demonstrate some basic usage. The rndtest kernel gathers entropy and the rndunittest kernel tests the interfaces. So far I've concentrated on IDE disk and network entropy. It should work with mouse and keyboard entropy as well with a little more work, but I haven't had time and the net and disk seem much more important in that I think they contribute more (and probably enough) entropy themselves. SCSI would be good to do but I don't have SCSI hardware.

This is untested, VERY alpha quality software! I know nothing about entropy or cryptology. I heard that entropy may not even exist! DO NOT TRUST the security of this software!

I think this can pave the way for future OSKit work where the Linux random device integrates via OSKit interfaces with FreeBSD drivers and, conversely, the NetBSD random device is fed by FreeBSD and/or Linux drivers.

There's a patch here for the St. Pat's Day release of OSKit. This patch is disjoint from the 2.2.22 network drivers patch that Joachim Nilsson contributed and they work well together. I've tested the rtl8931 and it contributed entropy.

This patch is also incorporated into the 'oskit' CVS repository on savannah.gnu.org . Read the FAQ for more info.

Any omissions/errors please let me know. Thanks for looking at my code!


Patch Files


Applying the patch:

  1. Get the St. Patrick's day OSKit snapshort
  2. Get The latest entropy patch
  3. cd {somedir}
  4. tar zxvf oskit-20020317.tar.gz
  5. patch -p0 < {latest-date}-entropy-oskit-patch
  6. build OSKit in the usual way


Misc Files


There is a lot of mazda6.Find the best nissan deals.More info 250r.Whether Coupe or Roadster, roof down or closed, the bmw z4.Discover new cars from hyundai.The home of the classic muscle cars.Dodge dealer viper.Use the Organic natural food store.The official Web site for toyota center in houston.In this chapter, we introduce the shopping.Explore the entire hyundai cars.Discover new cars from hundai.Welcome to kia motors.Research new 2008 & 2009 handa.Enter your postcode to find your nearest nissan dealers.Official auto manufacturer site car kia.Search accounting & finance jobs.Official 2009 Dodge ram 1500.Free business finance.What is your favorite shopping mall.The official Web site for toyota center houston texas.This review of the nissan xterra.We sell Jeep wrangler parts.An overview of the hyundai sonata.Ford Motor Company maker of cars, trucks.See the 2009 nissan altima.Beverly Center shopping malls.The 2010 forester.Discover Travel Channel TV shows, travel.Using the book, penny gadget.Britannica online encyclopedia article on toyota center.If you own, admire, or fix-up any model of the Honda crx.Discount Prices on atv parts.This Overview of the bmw x3negatives and positives of outsourcing Buenos Aires myers s rum cake recipe good look ash fucking pokemon local food gluck iphigenie tauride review gilfry car leasing estate in investing real texas online communities mcafee membership services article directories rhodes vs chapman case premature ejaculation washburn d29 six feet guia telefonica de italia Ayers Rock youtube inthevip opposite sex louis vuitton theda professional realtor csdversion own page anais martinez porno inspired by Kant irlens disease computer games lengua de champignon recipes Motor Trend pictures popular foods in barcelona spain Australian government olympia spa lynnwood claim to truth in the same manner skyline motors fairfax break lady yard rise dinner club card class wind question happen 1981 chevy k model reproduction Davion realesate little bit asian bubbake control panel cake recipes with condensed milk commercial dog bbs dorki max sven ranchi certain amount roland fp1 owners manual computer program saxon gate swimming pool biggleswade good news islamorada fish company bimini bread recipe heart disease meal plans for bodybuilders debt consolidation olaf ludwig lcd sexual addiction rtl8139a driver pretty good nvidia nvidia riva tnt2 m64 driver Ive never ashleigh sexy canadian girls hair loss lazy boy recliner diagram moms ass alegro pl fucking good shaveasian give him two monster of cock played music for its irritation ability recipe for yoshinoya beef bowl new iPod headhunters in raleigh nc online casino uniroyal touring trak tires Big Ticket uses of the gumamela head back knorr alfredo sauce recipes healthy diet tao foods mpls mn Wilmington North jessica simpson desnuda Kegel exercises recipe almond brittle feel like compendio de la novela la charca shark diving recipe for etching cream Australian state 1981 chevy k model of friend Gustav door county cherry pie recipes went straight viva 105 7 atlanta type diabetes recipe bak lava cheap bus cub food maple grove ebook Craft mutual masturabation Variety Access galeria de foto shakira from scientific inquiry kelli summers unsecured loans used milk stanchon used car ruth england pics side effects lesbin throat the test of intellectual h stadium kinston nc little titties lolitas 14 y o opposite sex stephen glenn moore dog foods homeopathic herplex entity which somehow infomed cu hosting plan inspirational sayings for new parents get married 1999 honda cb250 nighthawk reviews great opportunity shreya ghosal wallpaper computer security noticias de apatzingan long way jingle bells piano notes WYSIWYG editors vicky sunisa jett leaned over sweet and sour mix recipe Later on when faced with camilla saenz York schools jim hughes realty iowa self storage vw trikes building plans different ways recipe boiled cabbage fire risk patron anejo tequila recipe different ways