diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-12 18:09:06 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-12 18:09:06 +0700 |
commit | daec40507f75c8bbe80f54e25338d31a2b411e39 (patch) | |
tree | f336873fdf0be8476dc45de28a30dda37976bd43 /crypto/src/pqc | |
parent | Dilithium SampleInBall change and KATs updated (diff) | |
download | BouncyCastle.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.cs | 2 |
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())); |