summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-18 11:16:50 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-18 11:16:50 +0700
commit24214b3eed3cc1b85ea228e88c42a29f14955f3a (patch)
tree35827d78fdea04902451715032f33a466c2bf7ec /crypto/test
parentRefactoring in Asn1 (diff)
downloadBouncyCastle.NET-ed25519-24214b3eed3cc1b85ea228e88c42a29f14955f3a.tar.xz
Refactoring around PrivateKeyInfo
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/asn1/test/PrivateKeyInfoTest.cs3
1 files changed, 2 insertions, 1 deletions
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())); }