gpg-protocol: some corrections
gpg-protocol: buffer reading and make parsing more robust