Gnupg cannot handle extremely large keys on 32 bit Linux
Alexander Feigl
gpglist at umbra-obscura.de
Sat Apr 7 20:30:41 CEST 2007
Hi
gnupg 2.x seems to have problems with importing extremely large keys on 32 bit
Linux. (>= 16kbit RSA) While an sensible error message might be acceptable
when support for such large keys is not desired, the current behaviour
certanly isn't. gnupg 2.0 imports the key but when listing the key it appears
under another key id and fingerprint and the key expiry date is not shown.
Other data might be corrupted too.
I tested it with gnupg 2.0.3 under Gentoo Linux. Once on a 64 bit AMD CPU,
once on a 32 bit AMD CPU. Besides everything is compiled for 64 bit/32 bit
the machines should be rather identical. 64 bit seems to work without
problems but 32 bit shows this incorrect behaviour. Gnupg 1.x seems to work
on both CPUs. Is this problem reproducable on other distributions or does a
compiler bug cause these problems.
I pasted a testing key below. The key with the key id 0x2D879666 gets imported
as 0xB61454A3 here.
While such large keys seem like overkill. But gnupg also supports the SHA512
hash which would require such large keys for sensible use.
Alexander Feigl
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.3 (GNU/Linux)
mQgNBEYXfA4BQACW9BfJWcU6VikLdrfFgcSywbW9FD2Acd609cjJD1vOC8daOKdN
Wawq5IQJ2f5MwNZE6xAGR/pZ61cjMw5pIZorN/+f6JurjWJBosNmkslAPa7jB240
4WdJKYRupThH/4zvjozb3mKeDFuMvk1sbHNadtZ3XQmqjPSp7EIwgA70vpmTWyZq
2DoanXjl1x+OhONAi0hjfh+I7YDn0eqDIHK4mmNCnAClkaEo2iDSeMEltH6mdv00
DPUQeGHQCp0JOdzqZc/dp+aO7al2Mi7WRq2ir4zVus49LhisH8rDRFJ5DJQ28qGJ
wtj4sIg4/Sz6MsZG2hwMJVB4SMPnAOyBlPGt965d0jxDeXhZdDIV9yKvAiKFZcKH
eYcoShhf4QwfX1KtmZ0ui6a01ipBkTe8floNTyXtvj7ub/k477eK7hQK3NijvUyz
cQDVo7W1EwYR2i7cRc34Qaz4N3OevqxvBgFof8N+rVelWMYcqwbyoXD7mA9On5U8
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UZ2N61HnPsy1B6VoLq/fo1tmovXQ4yQBlgaipTV2EciuweU
Rr/Nwk+XRjjtYF4o9QPMKADfr66KjKeRuq7H6j/YfmQFBw3n8FYvubjhKcLECQPK
tDOMg+ciaScsHO6ipbzt5nObkMJYom+afYnDC3d2V79TMDz260PjsfyI91UKElwV
yUFzBENwIp7pxObud+pmJusmTrEOfEc5OYxelKELfM2K8S2njoif8Eu/9ck+N2bT
X7kc6/CdfdGjV+8Xh44biotvpK/qA3fjoQWgw46uSLTRFQi3vLikELNakbY4EZ9j
inBzK2Oxx7fqCJafOgyGjrXKJ+nqoEV0auwSgnFHoDLjPs+5h7WM5g64sclDWMsM
QNXf0rNC5vzXWPT2VOpu3ShgoSylbbYZ//QhouRIbksNfIkEOKM/akuNjJdXCMpt
CPaJAwZEUGr5ly5ftVyl7qEKaTRUXdNcLlfTRCAFtFXqYStt/sA2zRP7yz+E8UGi
FM9U5TKBE76BOJ4GGHmdIx5Guk9I5Xh/jbzRthP351SHy05YSaPVAOgNlviOOVh8
Ix/j97Lb7fvJz/XXm6vIIfTsPKNok4COLRCMCPnoYF9GF0FT5BbvEr/poD3IYgAB
ZH4Y3Y/HT7U/62N0spPFmB6hKrahw0kOtYLFz2oG0iuAOBztQYmEPGmxYzMW8VBs
kg9IosH3fkJ8Hg1NmpEW7xXvRJSwLleEUbC0Fhv2PxVpnB+l8dP2l7TY6T8plNZB
D/jyA1BXXeb+Rr0IZjAKjwytRt9ZXdnv4WR13XX+etduE/k8g+bPht+17lx3he69
hqUkzquOqQYEiIdRbYLZ5XNWhq2ecAbUlrD0rGxiadwy
=zxXK
-----END PGP PUBLIC KEY BLOCK-----
More information about the Gnupg-users
mailing list