summary refs log tree commit diff
path: root/crypto/src/pqc
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-06-12 18:09:06 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-06-12 18:09:06 +0700
commitdaec40507f75c8bbe80f54e25338d31a2b411e39 (patch)
treef336873fdf0be8476dc45de28a30dda37976bd43 /crypto/src/pqc
parentDilithium SampleInBall change and KATs updated (diff)
downloadBouncyCastle.NET-ed25519-daec40507f75c8bbe80f54e25338d31a2b411e39.tar.xz
DerInteger constants for small values
Diffstat (limited to 'crypto/src/pqc')
-rw-r--r--crypto/src/pqc/crypto/utils/PqcPrivateKeyInfoFactory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/pqc/crypto/utils/PqcPrivateKeyInfoFactory.cs b/crypto/src/pqc/crypto/utils/PqcPrivateKeyInfoFactory.cs
index 235478258..cc8882890 100644
--- a/crypto/src/pqc/crypto/utils/PqcPrivateKeyInfoFactory.cs
+++ b/crypto/src/pqc/crypto/utils/PqcPrivateKeyInfoFactory.cs
@@ -114,7 +114,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Utilities
             if (privateKey is FalconPrivateKeyParameters falconPrivateKeyParameters)
             {
                 Asn1EncodableVector v = new Asn1EncodableVector(4);
-                v.Add(new DerInteger(1));
+                v.Add(DerInteger.One);
                 v.Add(new DerOctetString(falconPrivateKeyParameters.GetSpolyLittleF()));
                 v.Add(new DerOctetString(falconPrivateKeyParameters.GetG()));
                 v.Add(new DerOctetString(falconPrivateKeyParameters.GetSpolyBigF()));