Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [darwin-dev] reading /dev/random from a kext



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >[darwin-dev] reading /dev/random from a kext (From: Alexander von Below <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.

dyld heap