Upgrade to Bouncy Castle 1.50

Release notes:

https://www.bouncycastle.org/releasenotes.html
Merge pull request #952 from andrewgaul/bouncy-castle-1.50

Upgrade to Bouncy Castle 1.50