diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-25 21:05:01 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-25 21:05:01 +0700 |
commit | 972f9d9a57e141d3171e8714eb953ad4852ab780 (patch) | |
tree | db57184e6f71586cf7d65b7c70f43883eec646be | |
parent | Fixed method name on verifier factory class (diff) | |
download | BouncyCastle.NET-ed25519-972f9d9a57e141d3171e8714eb953ad4852ab780.tar.xz |
Add suffix check for test files
-rw-r--r-- | crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs | 5 |
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); |