summary refs log tree commit diff
path: root/crypto/src/pqc
diff options
context:
space:
mode:
authorRoy Basmacier <roy.basmacier@keyfactor.com>2022-06-24 16:19:02 -0400
committerRoy Basmacier <roy.basmacier@keyfactor.com>2022-06-24 16:19:02 -0400
commit5ce0ecf7d31b462bd14c51a9e1f6514dc188c17c (patch)
tree9236aa449ab6b2c2142f3f8b0065078e125c2603 /crypto/src/pqc
parentsphincs plus v3.1 (diff)
parentRefactoring (diff)
downloadBouncyCastle.NET-ed25519-5ce0ecf7d31b462bd14c51a9e1f6514dc188c17c.tar.xz
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'crypto/src/pqc')
-rw-r--r--crypto/src/pqc/crypto/lms/LMSException.cs34
1 files changed, 21 insertions, 13 deletions
diff --git a/crypto/src/pqc/crypto/lms/LMSException.cs b/crypto/src/pqc/crypto/lms/LMSException.cs
index 5f8f7b9d9..c9c286b7f 100644
--- a/crypto/src/pqc/crypto/lms/LMSException.cs
+++ b/crypto/src/pqc/crypto/lms/LMSException.cs
@@ -1,22 +1,30 @@
 using System;
+using System.Runtime.Serialization;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Lms
 {
+    [Serializable]
     public class LMSException
         : Exception
     {
-        public LMSException()
-        {
-        }
+		public LMSException()
+			: base()
+		{
+		}
 
-        public LMSException(string message)
-            : base(message)
-        {
-        }
+		public LMSException(string message)
+			: base(message)
+		{
+		}
 
-        public LMSException(string message, Exception cause)
-            : base(message, cause)
-        {
-        }
-    }
-}
\ No newline at end of file
+		public LMSException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		protected LMSException(SerializationInfo info, StreamingContext context)
+			: base(info, context)
+		{
+		}
+	}
+}