This avoids crashing with:
Exception raised:
Traceback (most recent call last):
...
File "/home/wking/src/pgp-mime/pgp_mime/signature.py", line 264, in set_public_key_algorithm
self.public_key_algorithm = self._public_key_algorithm_enum[value]
KeyError: 0
When `gpgme-tool` responds with signatures like:
<gpgme>
<verify-result>
<signatures>
<signature>
...
<pubkey-algo value="0x0">(null)</pubkey-algo>
...
</signature>
</signatures>
</verify-result>
</gpgme>
which I was coming up in the test suite (I'm not sure why).
_validity_enum_inv = dict((v,k) for k,v in _validity_enum.items())
_public_key_algorithm_enum = { # GPGME_PK_* in gpgme.h
+ 0: 'none',
1: 'RSA', # Rivest, Shamir, Adleman
2: 'RSA for encryption and decryption only',
3: 'RSA for signing and verification only',