From 24214b3eed3cc1b85ea228e88c42a29f14955f3a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 18 Jul 2023 11:16:50 +0700 Subject: Refactoring around PrivateKeyInfo --- crypto/test/src/asn1/test/PrivateKeyInfoTest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/test/src') diff --git a/crypto/test/src/asn1/test/PrivateKeyInfoTest.cs b/crypto/test/src/asn1/test/PrivateKeyInfoTest.cs index 6d197ccc6..21928407a 100644 --- a/crypto/test/src/asn1/test/PrivateKeyInfoTest.cs +++ b/crypto/test/src/asn1/test/PrivateKeyInfoTest.cs @@ -39,7 +39,8 @@ namespace Org.BouncyCastle.Asn1.Tests IsTrue(privInfo1.HasPublicKey); - privInfo2 = new PrivateKeyInfo(privInfo1.PrivateKeyAlgorithm, privInfo1.ParsePrivateKey(), privInfo1.Attributes, privInfo1.PublicKeyData.GetOctets()); + privInfo2 = new PrivateKeyInfo(privInfo1.PrivateKeyAlgorithm, privInfo1.ParsePrivateKey(), + privInfo1.Attributes, privInfo1.PublicKey.GetOctets()); IsTrue("enc 2 failed", AreEqual(privWithPub, privInfo2.GetEncoded())); } -- cgit 1.5.1