Secret key export difference in 1.4 and 2.1
A.L.E.C
alec at alec.pl
Wed Oct 26 11:00:18 CEST 2016
I ported PEAR::Crypt_GPG library to GnuPG 2.1 and one test fails when
testing GnuPG 2.1.15 (no problem with 1.4.20). I'm not sure this is a
bug or not.
The exported key has no passphrase set and was created with 1.4. Also,
the keyring is in old format before I execute gpg with
--export-secret-keys argument. So, a migration process is involved. I
see no errors in the gpg output, status is EXPORT_RES 1 1 1.
The difference is in last three lines of the armored key data:
Failed asserting that
"-----BEGIN PGP PRIVATE KEY BLOCK-----
lQG7BEjS+OkRBACyn20BV58+x0c2Fq49TLtrWQBCT9VxnNdeCUJ4sEgomTEUhYXu
LAJ7UmORwjhT16l2X7EJKXZEfEbfZI8j/iYnpIBp/iYtsZ8y6bN70wdeNpRtZkB3
Cu1mU5C6d/thw0TmedW93bQ06wMtzBEPEQuOM+YjiKQZjjgqFmln5T3ctwCg6b/H
8//3jEa2N5J8U4yTOxZjxUMD/ROX/utLDNKX+dTLy69uQrlr94tabwszpBgdTYMw
zgefgUYDdR7esWM5rZ5MMJX9lPzeePMPf0/7RllhYA4XgJ7EvzVTGNAuL45LVJrG
9B5dhwrChoKFNUtCfINS61urPdhUQA8YzmUxI+iDgBkD4FujLoh8ww+pxupJRsYZ
b39iA/0ZJKZOeIN3JyUrIlqSqENG549H0+Y4TC5t8YixafB8fPBjlMz0+xGMR3Xx
b8WHD+XFdulr/sVZ4WZ00YtOGhS/3ZF7qGrxCCBrCAjDRdPzqaF15nMaqgIogOIO
L5j9wI6wRpMsJBxEbttWR/9K4BXhBriwg9qv4vamwzFM0t2vLQAAnRezOzJCxMwH
xJHP1w6hpE8EQXV2CXq0c05vIFBhc3NwaHJhc2UgUHVibGljIGFuZCBQcml2YXRl
IFRlc3QgS2V5IChkbyBub3QgZW5jcnlwdCBpbXBvcnRhbnQgZGF0YSB3aXRoIHRo
aXMga2V5KSA8bm8tcGFzc3BocmFzZUBleGFtcGxlLmNvbT6IYAQTEQIAIAUCSNL4
6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8iMee1I7d581NecYG9U87LZf2Xr
9r2m4YmiGO5w/oKVyMXuJfNAgMSMu9EIF+whBFdQjlZ2nEfwf0K1oU/Eod1lKTRA
FYcpDlwhO5M18pIcc4gI+wADBQf/d5ISDTDuirgkyFOi1sJxk/avD10NNvmaXYxc
2gTYF7Natkq0T0x2behWwNbO3DhZOFrZqlj+mkg9LRx/Q0XMviac1X0ils20MdS2
PSa8wkg8BC+2RVbV6DrNAyF+E2+9penGulTgKsPIybn0azBgVkfoRBjpTu8D8xFH
+ASaZUt+850oynFlDmAXWfqU5pcTMVEny+KrY62S6TDH2zLEfIJKK97oRuU9F86A
UbAIn575fUHJnzgEoelxKJTWWlDCH9IPq37ZrStNeOBqURgzttvMaL7/zhcVPIEw
9WFgG8TCEpYNOg+x0gqETHM2rIRBdGfjgaSY7T9fXoxiikv37AABVAg+anwLssMt
ypICzst26P2lLSCGT1f7icmHvSqBgVdOQizx/9QYGMoUigAUyohJBBgRAgAJBQJI
0vj1AhsMAAoJEJRWP7OYraaywmQAoK31UjQ8v0JxjEBYQISdvYuLNpA8AKC7QxpJ
WOad2BFLoSh6WM3H7KvMUg==
=ZTyB
-----END PGP PRIVATE KEY BLOCK-----".
--
Aleksander 'A.L.E.C' Machniak
Kolab Groupware Developer [http://kolab.org]
Roundcube Webmail Developer [http://roundcube.net]
----------------------------------------------------
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
More information about the Gnupg-devel
mailing list