diff options
author | David Hook <dgh@cryptoworkshop.com> | 2023-08-15 12:35:39 +1000 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2023-08-15 12:35:39 +1000 |
commit | e2614c2e099230e43c4831c4227daa6728e47909 (patch) | |
tree | 3796c51a24ed6f6a1868ccea17e7185896396160 /crypto | |
parent | removed Kyber AES, updated unit vector test (diff) | |
download | BouncyCastle.NET-ed25519-e2614c2e099230e43c4831c4227daa6728e47909.tar.xz |
rolled back constant field removal
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs | 5 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs index 05c52c0c9..e6aa6ab21 100644 --- a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs +++ b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs @@ -7,8 +7,13 @@ namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium : ICipherParameters { public static DilithiumParameters Dilithium2 = new DilithiumParameters(2, false); + public static DilithiumParameters Dilithium2Aes = new DilithiumParameters(2, true); + public static DilithiumParameters Dilithium3 = new DilithiumParameters(3, false); + public static DilithiumParameters Dilithium3Aes = new DilithiumParameters(3, true); + public static DilithiumParameters Dilithium5 = new DilithiumParameters(5, false); + public static DilithiumParameters Dilithium5Aes = new DilithiumParameters(5, true); private int k; private bool usingAes; diff --git a/crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs b/crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs index 71bd23db1..195831433 100644 --- a/crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs +++ b/crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs @@ -8,6 +8,9 @@ namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Kyber public static KyberParameters kyber512 = new KyberParameters("kyber512", 2, 128, false); public static KyberParameters kyber768 = new KyberParameters("kyber768", 3, 192, false); public static KyberParameters kyber1024 = new KyberParameters("kyber1024", 4, 256, false); + public static KyberParameters kyber512_aes = new KyberParameters("kyber512-aes", 2, 128, true); + public static KyberParameters kyber768_aes = new KyberParameters("kyber768-aes", 3, 192, true); + public static KyberParameters kyber1024_aes = new KyberParameters("kyber1024-aes", 4, 256, true); private string m_name; private int m_sessionKeySize; |