Re: generating keys by using only part of longer random number
- From: Alex Ponebshek <alexbobp@xxxxxxxxx>
- Date: Tue, 10 Jun 2008 18:26:07 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kim Schulz wrote:
On Jun 10, 11:59 am, David Eather <eat...@xxxxxxxxxx> wrote:You can't lose any more entropy than the data you remove. If you have
Kristian Gjøsteen wrote:
Kim Schulz <kimu...@xxxxxxxxx> wrote:The OP might want to look for BBS stream generatorhttp://en.wikipedia.org/wiki/Blum_Blum_Shub
If I have a random number generator that e.g. generates 512bit longIf the generator samples 512 bit strings from the uniform distribution
keys but I only need 160bits of them. Would the quality of the
randomness then be compromised if I always just uses the first 160bits
of the key?
(or something that looks like the uniform distribution), then it is
ok. Otherwise, it depends on the exact distribution.
Which may be useful for the job
Thanks for the input guys! appreciate it. The BBS seems to be
something I can actually use for another project I have so thanks for
that input too.
512 bits of high-entropy random data, for example, then sample anything
from it and have your sample be high-entropy too. The only danger is if
your prng gives 512 bits of input and some ranges are more random than
others.
In general, many prngs will not output very high entropy at first, so
most applications discard the first several bits of data. I would
actually recommend using the last 160 bits instead of the first 160
bits, although whether that actually matters depends on the algorithm.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFITw2P332XGuSJCagRAqwFAJ4/75KBMeUiPdtKODDvUXMC0nN2PACfSEcU
gha01reFMywWkjkd61WjAFI=
=72uw
-----END PGP SIGNATURE-----
.
- References:
- generating keys by using only part of longer random number
- From: Kim Schulz
- Re: generating keys by using only part of longer random number
- From: Kristian Gjøsteen
- Re: generating keys by using only part of longer random number
- From: David Eather
- Re: generating keys by using only part of longer random number
- From: Kim Schulz
- generating keys by using only part of longer random number
- Prev by Date: Re: JSH: Wow, cool factoring relations
- Next by Date: Re: Can this be decrypted ?
- Previous by thread: Re: generating keys by using only part of longer random number
- Next by thread: Re: generating keys by using only part of longer random number
- Index(es):
Relevant Pages
|