gpg-protcol: improve the keyinfo machine