OpenPGP: Remove unused variables and fix type cast.