BouncyCastle provider name is defined by provider, instead of as a string

This commit is contained in:
nathan 2014-11-16 15:33:57 +01:00
parent 9a76f75d42
commit 0e748aab45
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class Crypto {
public static final void addProvider() {
// 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) {
Security.addProvider(new BouncyCastleProvider());
}