Testing PGP with the BouncyCastle library