summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-10-25 21:05:01 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-10-25 21:05:01 +0700
commit972f9d9a57e141d3171e8714eb953ad4852ab780 (patch)
treedb57184e6f71586cf7d65b7c70f43883eec646be
parentFixed method name on verifier factory class (diff)
downloadBouncyCastle.NET-ed25519-972f9d9a57e141d3171e8714eb953ad4852ab780.tar.xz
Add suffix check for test files
-rw-r--r--crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs b/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs
index a41c99266..23639b112 100644
--- a/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs
+++ b/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs
@@ -59,11 +59,14 @@ namespace Org.BouncyCastle.Pkcs.Tests
 			doOpensslTestKeys();
 		}
 
-		private void doOpensslTestKeys()
+        private void doOpensslTestKeys()
 		{
 			string[] names = GetTestDataEntries("keys");
 			foreach (string name in names)
 			{
+                if (!name.EndsWith(".key"))
+                    continue;
+
 //				Console.Write(name + " => ");
 				Stream data = GetTestDataAsStream(name);
 				AsymmetricKeyParameter key = PrivateKeyFactory.DecryptKey("12345678a".ToCharArray(), data);