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);
|