BouncyCastle provider name is defined by provider, instead of as a string
This commit is contained in:
parent
9a76f75d42
commit
0e748aab45
|
@ -98,7 +98,7 @@ public class Crypto {
|
||||||
|
|
||||||
public static final void addProvider() {
|
public static final void addProvider() {
|
||||||
// make sure we only add it once (in case it's added elsewhere...)
|
// make sure we only add it once (in case it's added elsewhere...)
|
||||||
Provider provider = Security.getProvider("BC");
|
Provider provider = Security.getProvider(BouncyCastleProvider.PROVIDER_NAME);
|
||||||
if (provider == null) {
|
if (provider == null) {
|
||||||
Security.addProvider(new BouncyCastleProvider());
|
Security.addProvider(new BouncyCastleProvider());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user