Fix compatibility wiht Bouncy Castle 1.49.