Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

GnuPG 1.4.23 for DOS (Announce)

posted by bencollver Homepage, 08.05.2024, 16:48

> This build fails to generate keypair under FreeDOS 1.2 and MS-DOS 6.22.
> Hangs when accessing NOISE device. Diff file contains both "/dev/urandom$"
> and "/dev/urandom" names, while NOISE.SYS exposes only names with dollar
> sign, i.e. "/dev/random$" and /dev/urandom$".

The diff says:
+        NAME_OF_DEV_URANDOM='/dev/urandom$'
...
-NAME_OF_DEV_URANDOM="/dev/urandom"
...
+NAME_OF_DEV_URANDOM=${NAME_OF_DEV_URANDOM:-"/dev/urandom"}


This means if you configure it to build with DJGPP, as i did, then it will use /dev/urandom$. Otherwise, by the time it reaches that last line, NAME_OF_DEV_URANDOM will be empty and unset, and for non-DJGPP builds it will fall back to using /dev/urandom.

If you try to generate a key without the NOISE driver, it will throw an error saying that it could not open /dev/urandom$ This leads me to believe that it is indeed using /dev/urandom$

I generated RSA keys on FreeDOS 1.3. It appeared to hang, i assumed because DJGPP severely buffers output, introducing a lot of delay. After a minute or so, it shows the output while it collects randomness, and then generates a key, which i used to sign, encrypt, and decrypt files.

I will test it on MS-DOS 6.22 and report back. I'll also see whether i can eliminate the delayed console output.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 202 users online (0 registered, 202 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum