Re: [darwin-dev] reading /dev/random from a kext
Re: [darwin-dev] reading /dev/random from a kext
- Subject: Re: [darwin-dev] reading /dev/random from a kext
- From: Matt Johnston <email@hidden>
- Date: Fri, 27 Jul 2007 10:42:13 +0800
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden