gnupg: discover hash algorithm used for signature