Implement BouncyCastle as the cipher engine.