I have three keys; I'll refer to them as 'foo'
[SE], and 'baz'
[A]. Whenever I run
gpg2 --export-private-subkeys baz!, it asks for a password, as it should. However, if I click 'Cancel', it proceeds to print out half of the private key anyway!
wc when I don't enter a password:
29 36 1658.
wc when I do enter a password:
60 67 3717.
By comparing the output from "no password" to the output from "yes password", I can see that the text is, indeed, identical to the first half of the 'baz' key.
Even stranger, when I run
gpg2 --export-private-subkeys on 'foo' or 'bar', it still prints out half of 'baz' when I decline to enter a password!
Is there any way I can stop it from exposing half of 'baz' when there is no password entered? Why do you think it would be doing this?