gpg: Split check_key_signature2.