summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-09-12 19:55:32 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-09-12 19:55:32 +0700
commita07a920f0e68f9234d8c4a29857ffbf4b106b7cd (patch)
treec9771154704b2cebf5d8bd398f1759b265caf750 /crypto/test
parentMark some classes sealed (diff)
downloadBouncyCastle.NET-ed25519-a07a920f0e68f9234d8c4a29857ffbf4b106b7cd.tar.xz
GetUnderlyingCipher() => UnderlyingCipher
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/crypto/test/RSABlindedTest.cs4
-rw-r--r--crypto/test/src/crypto/test/RsaTest.cs6
2 files changed, 5 insertions, 5 deletions
diff --git a/crypto/test/src/crypto/test/RSABlindedTest.cs b/crypto/test/src/crypto/test/RSABlindedTest.cs
index b6e8eb0ea..99d4a9deb 100644
--- a/crypto/test/src/crypto/test/RSABlindedTest.cs
+++ b/crypto/test/src/crypto/test/RSABlindedTest.cs
@@ -267,7 +267,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 
 			eng.Init(true, pubParameters);
 
-			if (eng.GetOutputBlockSize() != ((Pkcs1Encoding)eng).GetUnderlyingCipher().GetOutputBlockSize())
+			if (eng.GetOutputBlockSize() != ((Pkcs1Encoding)eng).UnderlyingCipher.GetOutputBlockSize())
 			{
 				Fail("PKCS1 output block size incorrect");
 			}
@@ -300,7 +300,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 			//
 			// PKCS1 - private encrypt, public decrypt
 			//
-			eng = new Pkcs1Encoding(((Pkcs1Encoding)eng).GetUnderlyingCipher());
+			eng = new Pkcs1Encoding(((Pkcs1Encoding)eng).UnderlyingCipher);
 
 			eng.Init(true, privParameters);
 
diff --git a/crypto/test/src/crypto/test/RsaTest.cs b/crypto/test/src/crypto/test/RsaTest.cs
index c8945b49f..3c01baa85 100644
--- a/crypto/test/src/crypto/test/RsaTest.cs
+++ b/crypto/test/src/crypto/test/RsaTest.cs
@@ -398,7 +398,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 		
 			eng.Init(true, encParameters);
 
-			if (eng.GetOutputBlockSize() != ((Pkcs1Encoding)eng).GetUnderlyingCipher().GetOutputBlockSize())
+			if (eng.GetOutputBlockSize() != ((Pkcs1Encoding)eng).UnderlyingCipher.GetOutputBlockSize())
 			{
 				Fail("PKCS1 output block size incorrect");
 			}
@@ -526,7 +526,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 
 			eng.Init(true, pubParameters);
 
-			if (eng.GetOutputBlockSize() != ((Pkcs1Encoding)eng).GetUnderlyingCipher().GetOutputBlockSize())
+			if (eng.GetOutputBlockSize() != ((Pkcs1Encoding)eng).UnderlyingCipher.GetOutputBlockSize())
 			{
 				Fail("PKCS1 output block size incorrect");
 			}
@@ -594,7 +594,7 @@ namespace Org.BouncyCastle.Crypto.Tests
             //
             // PKCS1 - private encrypt, public decrypt
             //
-            eng = new Pkcs1Encoding(((Pkcs1Encoding)eng).GetUnderlyingCipher());
+            eng = new Pkcs1Encoding(((Pkcs1Encoding)eng).UnderlyingCipher);
 
 			eng.Init(true, privParameters);