PGP functions.