Upgraded to Bouncy Castle 1.50 and removed direct calls to addProvider