Use of AutoSeededRandomPool
flag
4 messages - Collapse all
/groups/adfetch?adid=tcZTPRAAAADa5g9NAQB3KBwMMgAlkTPT
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
1.  dreijer  
View profile  
 More options Dec 28 2006, 7:30 pm
From: "dreijer" <ad...@blacksmith-studios.dk>
Date: Fri, 29 Dec 2006 00:30:31 -0000
Local: Thurs, Dec 28 2006 7:30 pm
Subject: Use of AutoSeededRandomPool
Hey,

I'm wondering whether it's okay just to instantiate a single, global
AutoSeededRandomPool in your application that is used by all the
various crypto algorithms or whether it's better to instantiate a new
AutoSeededRandomPool every time you need it (such as one for creating a
random nonce and another one when calling RSA's Encrypt() method).

Soren


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Jeffrey Walton  
View profile  
 More options Dec 29 2006, 1:28 am
From: "Jeffrey Walton" <noloa...@gmail.com>
Date: Thu, 28 Dec 2006 22:28:28 -0800
Local: Fri, Dec 29 2006 1:28 am
Subject: Re: Use of AutoSeededRandomPool
Hi Soren,

A GlobalPRNG should be fine. Unless of course design requirements
dictate each thread receive it's own PRNG, etc.

I actually prefer the Global method since ASRP uses OS entropy to seed
itself (on Windows). I think it is possible to go to the well once to
often when using the underlying OS function. That is, a per thread or
per needed may tax the systems ability to deliver psuedo random bytes.

Jeff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3.  Wei Dai  
View profile  
 More options Dec 29 2006, 3:09 am
From: "Wei Dai" <wei...@weidai.com>
Date: Fri, 29 Dec 2006 00:09:16 -0800
Local: Fri, Dec 29 2006 3:09 am
Subject: Re: Use of AutoSeededRandomPool

Jeffrey Walton wrote:
> A GlobalPRNG should be fine. Unless of course design requirements
> dictate each thread receive it's own PRNG, etc.

I suggest one instance per thread so you don't have to worry about
synchronizing access to it. One instance per use is fine also if that
is more convenient. The extra system overhead is probably unnoticeable
in most situations.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
4.  Jeffrey Walton  
View profile  
 More options Dec 29 2006, 4:10 am
From: "Jeffrey Walton" <noloa...@gmail.com>
Date: Fri, 29 Dec 2006 04:10:57 -0500
Local: Fri, Dec 29 2006 4:10 am
Subject: Re: Use of AutoSeededRandomPool

Hi Wei,

| synchronizing access...
Very good observation. I to did not occur to me. I was thinking more along
the lines of LCGs so you could reproduce results from one run to the next
during debugging.

Jeff

On 12/29/06, Wei Dai <wei...@weidai.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2012 Google