Fix key generation
pgp() returns true or false if pgp should be used. Comparing it to the value of OpenPGP lead to inverted results.