This PR adapts to changes in bouncycastle 1.61 (now in Fedora 30).
The PrivateKeyInfo(ASN1Sequence) constructor in now declared private and can not be used.
The PrivateKeyInfo.getPrivateKey() method has been removed (was previously deprecated).
I tried to update the code to still do the same thing, but please review.
It still compiles against bc 1.58 and 1.60, as well as now also compiling against bc 1.61.
This PR adapts to changes in bouncycastle 1.61 (now in Fedora 30).
I tried to update the code to still do the same thing, but please review. It still compiles against bc 1.58 and 1.60, as well as now also compiling against bc 1.61.