NODE 29215a06Re: rng, anyone?
wcs@anchor.ho.att.com (bill.stewart@pleasantonca.ncr.com +1-510-484-6204)Thu, 14 Apr 94 22:50:17 PDT
> need good RNG
WHile Blum-Blum-Shub is probably the cool way to go,
RSAREF uses repeated iterations of MD5 to generate its pseudo-randoms,
which can be reasonably secure and use code you've probably already got
hooks from perl for.
NODE 6bdeb8b0rng, anyone?
hughes@ah.com (Eric Hughes)Sat, 16 Apr 94 21:13:56 PDT
Re: PGP simulators
>WHile Blum-Blum-Shub is probably the cool way to go,
>RSAREF uses repeated iterations of MD5 to generate its pseudo-randoms,
>which can be reasonably secure and use code you've probably already got
>hooks from perl for.
There is a problem with generating random numbers by repeated
iterations of a hash function when these numbers will be used to
simulate an encrypted message body. The body can be seen to be
generated by the algorithm. All you do is to apply MD5 to the first
block and see if it's equal to the second block. This completely
identifies the message as a hash-chain generation, and thus as a fake
message.
Indistinguishability is a harder criterion to simulate than other
notions of randomness.
Eric
NODE c2d995f6Re: rng, anyone?
Matthew J Ghio <mg5n+@andrew.cmu.edu>Sun, 17 Apr 94 11:31:37 PDT
hughes@ah.com (Eric Hughes) wrote:
> There is a problem with generating random numbers by repeated
> iterations of a hash function when these numbers will be used to
> simulate an encrypted message body. The body can be seen to be
> generated by the algorithm. All you do is to apply MD5 to the first
> block and see if it's equal to the second block. This completely
> identifies the message as a hash-chain generation, and thus as a fake
> message.
>
> Indistinguishability is a harder criterion to simulate than other
> notions of randomness.
Try xoring the output with a secret value between MD5 hashes.
NODE 2fe51a19rng, anyone?
hughes@ah.com (Eric Hughes)Sun, 17 Apr 94 18:30:14 PDT
>> There is a problem with generating random numbers by repeated
>> iterations of a hash function when these numbers will be used to
>> simulate an encrypted message body.
>Try xoring the output with a secret value between MD5 hashes.
That'll work. Take the seed as the secret value, and take the first
hash as the first block.
Eric