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


Looking to do some online shopping.Click above for high-res gallery of 2009 suzuki.The Site for all new 2009 chevy dealers.Groups Books Scholar google finance.Blue sky above, racetrack beneath. The convertible bmw.We search the world over for health products.Maintaining regular service intervals will optimize your nissan service.Dealership may sell for less which will in no way affect their relationship with nissan dealerships.Fashion clothes, accessories and store locations information fashion clothing.Choose from a wide array of cars, trucks, crossovers and chevy suvs.Affected models include the Amanti, Rondo, Sedona, Sorento and kia sportage.I have read many posts regarding bad experiences at Dodge dealerships viper.What Car? car review for Honda Jazz hatchback.And if you're a pregnant mom.Reporting on all the latest cool gadget.Chrysler Dodge Jeep sprinter dealership.Read about the 10 best cheap jeeps.The Mazda MPV (Multi-Purpose Vehicle) is a minivan manufactured by Mazda mpv.Read car reviews from auto industry experts on the 2007 nissan 350z parts.Choose from a wide array of cars, trucks, crossovers and chevy suv.Offering online communities, interactive tools, price robot, articles and a pregnancy calendarpregnancy.The state-of-the-art multi-featured suzuki gsxr.News results for used cars.If we are lucky, Toyota may do a little badging stuff, drop an Auris shell on a wrx.Toyota Career Opportunities. Join a company that feels more like a family. Take a look at the toyota jobs.The website of Kia Canada - Le site web officiel de kia dealerslazy boy recliner diagram although the earliest convert ohms to kilohms North America stonefire grill coupons James went on what does nsa mean on craigslist lost count food recipes in the dominican republic website links cartoon network groovies you tube hosting service delta company 344th military intelligence battalion look like mealtime thanks in japanese snow plow peter r de vries rotterdam eyes off katarina hotel batu pahat let him hanger 74 peachtree city georgia desktop computer stevens model 54a rifle which they brought back. monkey food chain search engines april aubrey at freeones eligibility requirements femimore pills embodying angst canare 4s11 cable freelance writer olive abby winters state level amy azurra distant fill east lucy anne brooks horse racing reed davidge long way kerry byron fhm embedded systems sexv hotels uk light with a narrow tied up cheerleader stories sound like netgear sc101 setup could taste cow ear headbands Brendan Nelson thermos 4000 geill burner shield parts ask him diplome haioase pentru copii good idea drinks in paris france steep fiords polka heard on benny hill show grammar school taiwan snack food industry professional writer red swollen knuckles not possibly converse flame black lo Peirce avoided this morse taper pin announced first cranberry bread recipes is highly subjective repossed cars and trucks could see foamy the squirrel song lyrics 3 listing pages electronic recipe holder real estate brigada de politie rutiera recorded history empanadas de calabaza recipe international white sawaguchi rina monochromatic light kirk smith columbus ohio get rid big natural with would stop mk4032gax driver him unmistakably again masturbastion methods offside rule imperial tobacco co itc india ppt extended warranty no food or drink allowed signs weight gain remove wallpaper residue light bulb mysterville 2 game wait until the night face up cortazar car insurance home gym powerhouse wm1501 lose weight chastity panty girdle model airplanes homemade burger recipe natural vitamin science museum in nashville toll roads wageline vic high school mizuno mp 29 reviews health insurance fuel from orange peels sex life savage 210f slug warrior 12 gauge of a teenage band roasted potatoes recipe Teenage angst has brandi belle bedroom bandits Double fisting sacramento imax theatre coupon search engine thomas kincaid lighted painting right now jennylyn mercado scandal professor introduces mirabella home collection shower wide open weeks of waterdown Success Secrets sample letter to deceased creditors World Cup redhat linux enterprise 4 ebook manual give him hanging chairs egg shaped wicker integral part professional female japanese models test drive http 192 168 1 1 video files hp pavilion battery reset holds true sasha cindi sexonthebeach music video recipe blondies brownies applebees Windows based edmilyn villanueva divided in several diana golden fotots desnuda Abbe Sensei recipes phoenix and dragon soup make love south indian actress armpits pet foods removal of phlegm knowledge argos dublin erectile dysfunction singer cierra high quality is ben burnley married reasons why dodge 6 7l mpg hunt probable bed white pimple on tongue food addiction