Define OpenPGP constants and use them rather than magic numbers