Re: [darwin-dev] reading /dev/random from a kext
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mutt/1.5.13 (2006-08-11) On Thu, Jul 26, 2007 at 05:25:16PM +0200, Alexander von Below wrote:
Hello,
I have previously been pointed to using /dev/random as described in random (4), but I am too stupid to find any way of opening it from kernel space.
Could someone show me a pointer?
The code for encrypted swap in xnu-792.18.15/osfmk/vm/vm_pageout.c just casts calls to libkern's random() into a char[] buffer. The security properties of random() aren't guaranteed I guess, though the implementation is calling read_random() internally. Matt _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Matt Johnston