diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-17 13:27:48 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-17 13:27:48 +0700 |
commit | 611474ef0fca0e2fa127a30665eb36b0db03fdbd (patch) | |
tree | 987e4dd0294438d500f9938df53954976aaf8506 | |
parent | Merge branch 'darkoperator-keyhasing' (diff) | |
download | BouncyCastle.NET-ed25519-611474ef0fca0e2fa127a30665eb36b0db03fdbd.tar.xz |
Refactoring
-rw-r--r-- | crypto/test/src/openssl/test/WriterTest.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/crypto/test/src/openssl/test/WriterTest.cs b/crypto/test/src/openssl/test/WriterTest.cs index 41f371708..0d7887771 100644 --- a/crypto/test/src/openssl/test/WriterTest.cs +++ b/crypto/test/src/openssl/test/WriterTest.cs @@ -90,21 +90,21 @@ namespace Org.BouncyCastle.OpenSsl.Tests AsymmetricCipherKeyPair testDsaKp = dsaKpg.GenerateKeyPair(); AsymmetricKeyParameter testDsaKey = testDsaKp.Private; - doWriteReadTest(testDsaKey); - doWriteReadTests(testDsaKey, algorithms); + DoWriteReadTest(testDsaKey); + DoWriteReadTests(testDsaKey, algorithms); - doWriteReadTest(testRsaKey); - doWriteReadTests(testRsaKey, algorithms); + DoWriteReadTest(testRsaKey); + DoWriteReadTests(testRsaKey, algorithms); AsymmetricKeyParameter ecPriv = PrivateKeyFactory.CreateKey(testEcDsaKeyBytes); - doWriteReadTest(ecPriv); - doWriteReadTests(ecPriv, algorithms); + DoWriteReadTest(ecPriv); + DoWriteReadTests(ecPriv, algorithms); IAsymmetricCipherKeyPairGenerator ecKpg = GeneratorUtilities.GetKeyPairGenerator("ECDSA"); ecKpg.Init(new KeyGenerationParameters(random, 239)); ecPriv = ecKpg.GenerateKeyPair().Private; - doWriteReadTest(ecPriv); - doWriteReadTests(ecPriv, algorithms); + DoWriteReadTest(ecPriv); + DoWriteReadTests(ecPriv, algorithms); // override test PemWriter pWrt = new PemWriter(new StringWriter()); @@ -115,17 +115,17 @@ namespace Org.BouncyCastle.OpenSsl.Tests pWrt.Writer.Close(); } - private void doWriteReadTests( + private void DoWriteReadTests( AsymmetricKeyParameter akp, string[] algorithms) { foreach (string algorithm in algorithms) { - doWriteReadTest(akp, algorithm); + DoWriteReadTest(akp, algorithm); } } - private void doWriteReadTest( + private void DoWriteReadTest( AsymmetricKeyParameter akp) { StringWriter sw = new StringWriter(); @@ -146,7 +146,7 @@ namespace Org.BouncyCastle.OpenSsl.Tests } } - private void doWriteReadTest( + private void DoWriteReadTest( AsymmetricKeyParameter akp, string algorithm) { |