Skip to contentSkip to conversation

HP-UX random number generator?

parisc-linux Peter A. Peterson II 5 participants 7 messages May 29, 2000 – May 30, 2000

lore
Share & tools
lore
#0 lore raw

I'm awaiting the day when I can fool around with Linux on my E-45, but in the meantime, I'm trying to use it's tape drive to back up my traditional Linux boxen via piping a tarball through ssh. However, ssh needs a random generator (like /dev/urandom/) and I don't know what an HP-UX equivalent might be, or how to go about installing one.

Any ideas?

pedro

Signature · 4 lines
-----------------------------------------------
      "She's laughin in her sleeve, boys;
   I can feel it in my bones."  -- Tom Waits
-----------------------------------------------
#1 lore raw
Quoted 7 lines · Peter A. Peterson II

I'm awaiting the day when I can fool around with Linux on my E-45, but in the meantime, I'm trying to use it's tape drive to back up my traditional Linux boxen via piping a tarball through ssh. However, ssh needs a random generator (like /dev/urandom/) and I don't know what an HP-UX equivalent might be, or how to go about installing one.

Since you want to use it for crypto, this is a fairly difficult problem. The numbers don't just need to have a nice distribution; they have to be highly unpredictable, even to the cleverest, most persistent and best-equipped opponent you might encounter.

The standard reference is RFC 1750.

A page with quite a lot of discussion of Linux /dev/random is at:
http://www.openpgp.net/random/index.html
There's a bunch more in Linux kernel mailing list archives.

Bruce Schneier and a few others have done quite a bit of research on weaknesses of random number generators and designed a generator called Yarrow. Source (Windows only last I looked) is freely available from counterpane.com.

#2 lore raw

Quoting Sandy Harris:

Quoted 5 lines

"Peter A. Peterson II" wrote:
Since you want to use it for crypto, this is a fairly difficult problem. The numbers don't just need to have a nice distribution; they have to be highly unpredictable, even to the cleverest, most persistent and best-equipped opponent you might encounter.

This is quite true... but for now, I'd settle on making ssh work, since there is nothing of great value on the HP box, I'm just looking for a way to kludge ssh into working.

Quoted 11 lines

The standard reference is RFC 1750.

A page with quite a lot of discussion of Linux /dev/random is at:
http://www.openpgp.net/random/index.html
There's a bunch more in Linux kernel mailing list archives.

Bruce Schneier and a few others have done quite a bit of research on weaknesses of random number generators and designed a generator called Yarrow. Source (Windows only last I looked) is freely available from counterpane.com.

I will look into this -- thanks.

pedro

Signature · 4 lines
-----------------------------------------------
      "She's laughin in her sleeve, boys;
   I can feel it in my bones."  -- Tom Waits
-----------------------------------------------
#3 lore raw
Quoted 5 lines · Peter A. Peterson II

This is quite true... but for now, I'd settle on making ssh work, since there is nothing of great value on the HP box, I'm just looking for a way to kludge ssh into working.

I downloaded ssh-1.2.27 a mounth ago or so on my HP-UX box, and used it to connect to my web provider (a linux machine), and it ran like a champ.

So go grab it, nothing to kludge, compile/link/run.

Phi

#4 lore raw
In reply to Peter A. Peterson II
Quoted 3 lines · Peter A. Peterson II

This is quite true... but for now, I'd settle on making ssh work, since there is nothing of great value on the HP box, I'm just looking for a way to kludge ssh into working.

I know that on Solaris a /dev/urandom device is provided by the SKI packages. There may be an equivalent under the HPUX environment but I am not sure, I am not very far up the HPUX guru ladder.

You might like to consider using OpenSSH if you don't have any joy with ssh.

OpenSSH can be compiled[1] without a /dev/*random device by using egd[2], the Entropy Gathering Daemon. OpenSSH also requires installation of zlib and openssl though (which is just a bit more effort, but oh well). I've not used egd so can't comment on it, but it's probably worth a go.

Or you could just fall back on rsh. =)

Andrew.

[1] http://www.openssh.com/portable.html
[2] http://www.lothar.com/tech/crypto/

--
Andrew Shugg <[email protected]> http://www.neep.com.au/

"Just remember Basil, there's always someone worse off than yourself." "Oh, really? I'd like to meet him ... I could do with a good laugh."
[ Sybil and Basil Fawlty, "Fawlty Towers" ]

#5 lore raw

Quoting Andrew Shugg:

Quoted 6 lines

You might like to consider using OpenSSH if you don't have any joy with ssh.

OpenSSH can be compiled[1] without a /dev/*random device by using egd[2], the Entropy Gathering Daemon. OpenSSH also requires installation of zlib and openssl though (which is just a bit more effort, but oh well). I've not used egd so can't comment on it, but it's probably worth a go.

I was incorrectly specific. I installed openssh, zlib, and ssleay already, and in the configure process for openssh it crapped out looking for /dev/urandom and/or egd. I think i'll look into egd.

Thanks all.

pedro

Signature · 4 lines
-----------------------------------------------
      "She's laughin in her sleeve, boys;
   I can feel it in my bones."  -- Tom Waits
-----------------------------------------------
#6 lore raw
Quoted 11 lines · Peter A. Peterson II

Quoting Andrew Shugg:

Quoted 6 lines

You might like to consider using OpenSSH if you don't have any joy with ssh.

OpenSSH can be compiled[1] without a /dev/*random device by using egd[2], the Entropy Gathering Daemon. OpenSSH also requires installation of zlib and openssl though (which is just a bit more effort, but oh well). I've not used egd so can't comment on it, but it's probably worth a go.

I was incorrectly specific. I installed openssh, zlib, and ssleay already, and in the configure process for openssh it crapped out looking for /dev/urandom and/or egd. I think i'll look into egd.

AFIAK, the more recent versions of openssh aren't supposed to need /dev/urandom (or egd) when used with openssl-0.9.5.

Barrie

--
Barrie Spence Sanity Clause? There is no Sanity Clause
Home: [email protected] Telephone +44 1506 442304
Play: [email protected]