summary refs log tree commit diff
path: root/crypto/src/pqc
diff options
context:
space:
mode:
authorDavid Hook <david.hook@keyfactor.com>2023-08-26 13:24:01 +1000
committerDavid Hook <david.hook@keyfactor.com>2023-08-26 13:24:01 +1000
commit6cdddcac76c9d1c439f1a85cdc21d0fc0704454a (patch)
treec280c6087df58e0b636faf4e6615e52316aec436 /crypto/src/pqc
parentc~ change from SP 800-204 (draft) (diff)
downloadBouncyCastle.NET-ed25519-6cdddcac76c9d1c439f1a85cdc21d0fc0704454a.tar.xz
marked AES mode as obsolete
Diffstat (limited to 'crypto/src/pqc')
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs4
-rw-r--r--crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs4
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 e6aa6ab21..4636fe6b0 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs
@@ -1,5 +1,6 @@
 using Org.BouncyCastle.Crypto;
 using Org.BouncyCastle.Security;
+using System;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
@@ -7,12 +8,15 @@ namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
         : ICipherParameters
     {
         public static DilithiumParameters Dilithium2 = new DilithiumParameters(2, false);
+        [Obsolete("Parameter set to be removed")]
         public static DilithiumParameters Dilithium2Aes = new DilithiumParameters(2, true);
         
         public static DilithiumParameters Dilithium3 = new DilithiumParameters(3, false);
+        [Obsolete("Parameter set to be removed")]
         public static DilithiumParameters Dilithium3Aes = new DilithiumParameters(3, true);
         
         public static DilithiumParameters Dilithium5 = new DilithiumParameters(5, false);
+        [Obsolete("Parameter set to be removed")]
         public static DilithiumParameters Dilithium5Aes = new DilithiumParameters(5, true);
 
         private int k;
diff --git a/crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs b/crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs
index e71333855..229ca7c3c 100644
--- a/crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs
+++ b/crypto/src/pqc/crypto/crystals/kyber/KyberParameters.cs
@@ -1,4 +1,5 @@
 using Org.BouncyCastle.Crypto;
+using System;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Kyber
 {
@@ -8,8 +9,11 @@ namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Kyber
         public static KyberParameters kyber512 = new KyberParameters("kyber512", 2, 256, false);
         public static KyberParameters kyber768 = new KyberParameters("kyber768", 3, 256, false);
         public static KyberParameters kyber1024 = new KyberParameters("kyber1024", 4, 256, false);
+        [Obsolete("Parameter set to be removed")]
         public static KyberParameters kyber512_aes = new KyberParameters("kyber512-aes", 2, 256, true);
+        [Obsolete("Parameter set to be removed")]
         public static KyberParameters kyber768_aes = new KyberParameters("kyber768-aes", 3, 256, true);
+        [Obsolete("Parameter set to be removed")]
         public static KyberParameters kyber1024_aes = new KyberParameters("kyber1024-aes", 4, 256, true);
 
         private string m_name;