--gen-random ignores SIGPIPE

Hauke Laging mailinglisten at hauke-laging.de
Mon Aug 26 03:26:10 CEST 2013


start cmd:> gpg --version
gpg (GnuPG) 2.0.19
libgcrypt 1.5.3

I would expect that "gpg --armor --gen-random 1" does not follow the 
documentation statement "If count is not given or zero, an endless sequence of 
random bytes will be emitted." unconditionally as this doesn't make any sense 


gpg --armor --gen-random 1 30 | dd if=/dev/stdin of=/dev/null bs=10 count=1

terminates but

gpg --armor --gen-random 1 | dd if=/dev/stdin of=/dev/null bs=10 count=1


Crypto für alle: http://www.openpgp-schulungen.de/fuer/bekannte/
OpenPGP: 7D82 FB9F D25A 2CE4 5241 6C37 BF4B 8EEF 1A57 1DF5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 572 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20130826/ad109e29/attachment-0001.sig>

More information about the Gnupg-users mailing list