diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-23 17:36:05 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-23 17:36:05 +0700 |
commit | 6523b613d4a657b02da0777083116a2f5df55e98 (patch) | |
tree | cc49fe502a5d73648cad86b3ca2dfce73a8b9d28 /crypto/src/security/JksStore.cs | |
parent | Change BigInteger arbitrary random source (diff) | |
download | BouncyCastle.NET-ed25519-6523b613d4a657b02da0777083116a2f5df55e98.tar.xz |
Complete SecureRandom refactoring
Diffstat (limited to 'crypto/src/security/JksStore.cs')
-rw-r--r-- | crypto/src/security/JksStore.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/security/JksStore.cs b/crypto/src/security/JksStore.cs index c679270a3..69ade11af 100644 --- a/crypto/src/security/JksStore.cs +++ b/crypto/src/security/JksStore.cs @@ -154,7 +154,7 @@ namespace Org.BouncyCastle.Security byte[] pkcs8Key = PrivateKeyInfoFactory.CreatePrivateKeyInfo(key).GetEncoded(); byte[] protectedKey = new byte[pkcs8Key.Length + 40]; - SecureRandom rnd = new SecureRandom(); + SecureRandom rnd = CryptoServicesRegistrar.GetSecureRandom(); rnd.NextBytes(protectedKey, 0, 20); IDigest digest = DigestUtilities.GetDigest("SHA-1"); |