gpg: Use macros to check the signature class.