summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2020-04-18 18:46:41 +1000
committerDavid Hook <dgh@cryptoworkshop.com>2020-04-18 18:46:41 +1000
commite75784d15d6d2d80a84176cd7895cd16a678a00f (patch)
tree5edf96ffe26900fce75e46b11d7c4e9897db43ea /crypto
parentinitial support for non-default PRF with PBKDF2 (diff)
downloadBouncyCastle.NET-ed25519-e75784d15d6d2d80a84176cd7895cd16a678a00f.tar.xz
fixed typo
Diffstat (limited to 'crypto')
-rw-r--r--crypto/test/src/pkcs/test/PKCS12StoreTest.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/test/src/pkcs/test/PKCS12StoreTest.cs b/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
index 92ed536f3..9d6f541fa 100644
--- a/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
+++ b/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
@@ -480,7 +480,7 @@ namespace Org.BouncyCastle.Pkcs.Tests
          + "ADBLMC8wCwYJYIZIAWUDBAIBBCDAU3cgA2uJqlRZ+VamaDDOoqvwwnJKOBUy"
          + "vn/gZKm4FgQU91hwRSdR+ekb4Lt7bjUUxaC/XYYCAgfQ");
 
-	private static readonly byte[] sentrixHard = Base64.Decode(
+	private static readonly byte[] sentrixSoft = Base64.Decode(
            "MIIKgQIBAzCCCj0GCSqGSIb3DQEHAaCCCi4EggoqMIIKJjCCAdoGCSqGSIb3"
          + "DQEHAaCCAcsEggHHMIIBwzCCAb8GCyqGSIb3DQEMCgECoIHMMIHJMBwGCiqG"
          + "SIb3DQEMAQMwDgQItChrbpZXBp8CAgfQBIGoEus4fyZZwKntfPRRch685zDx"
@@ -921,6 +921,14 @@ namespace Org.BouncyCastle.Pkcs.Tests
 			//
 			stream = new MemoryStream(pkcs12nopass, false);
 			store.Load(stream, "".ToCharArray());
+
+			stream = new MemoryStream(sentrixHard, false);
+			store = new Pkcs12StoreBuilder().Build();
+			store.Load(stream, "0000".ToCharArray());
+
+			stream = new MemoryStream(sentrixSoft, false);
+			store = new Pkcs12StoreBuilder().Build();
+			store.Load(stream, "0000".ToCharArray());
 		}
 
 		private void DoTestSupportedTypes(AsymmetricKeyEntry privKey, X509CertificateEntry[] chain)