summary refs log tree commit diff
path: root/crypto/src/pqc
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-11 23:36:32 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-03-11 23:36:32 +0700
commit8ed01d5f6322defa0b3dbb1e149b05736f54f832 (patch)
treefde48f03f14134ecd9b9ece814309bda07e85371 /crypto/src/pqc
parentObsolete unused segmentLimit (diff)
downloadBouncyCastle.NET-ed25519-8ed01d5f6322defa0b3dbb1e149b05736f54f832.tar.xz
Refactoring in Asn1 classes
Diffstat (limited to 'crypto/src/pqc')
-rw-r--r--crypto/src/pqc/crypto/utils/PqcPublicKeyFactory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/pqc/crypto/utils/PqcPublicKeyFactory.cs b/crypto/src/pqc/crypto/utils/PqcPublicKeyFactory.cs
index 7f863820e..3c9849799 100644
--- a/crypto/src/pqc/crypto/utils/PqcPublicKeyFactory.cs
+++ b/crypto/src/pqc/crypto/utils/PqcPublicKeyFactory.cs
@@ -225,7 +225,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Utilities
             internal override AsymmetricKeyParameter GetPublicKeyParameters(SubjectPublicKeyInfo keyInfo, object defaultParams)
             {
                 byte[] keyEnc = Asn1OctetString.GetInstance(
-                    DerSequence.GetInstance(keyInfo.ParsePublicKey())[0]).GetOctets();
+                    Asn1Sequence.GetInstance(keyInfo.ParsePublicKey())[0]).GetOctets();
 
                 SaberParameters saberParams = PqcUtilities.SaberParamsLookup(keyInfo.AlgorithmID.Algorithm);