Upgrading to BouncyCastle 1.49 APIs