Provider bc = new BouncyCastleProvider();
Security.addProvider(bc);
</BUG>
BC_PROVIDER = bc;
<BUG>if (null != BC_PROVIDER)

Log.info("KeyManager: Successfully initialized BouncyCastle provider.");

else
Log.severe("ERROR: NULL default provider! Cannot load BouncyCastle!");

}</BUG>
}

Provider bc = new BouncyCastleProvider();
int result = Security.addProvider(bc);
BC_PROVIDER = bc;
if (null != BC_PROVIDER) {
if (result > 0) {
Log.info("KeyManager: Successfully initialized BouncyCastle provider at position " + result);
} else {
Log.info("KeyManager: BouncyCastle provider already installed.");
