summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-27 14:00:59 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-27 14:00:59 +0700
commit60eb88fe48601eb93c5fe98016f77858d1faa4b3 (patch)
treed8aadca91f399ca5ed080a650e8e2e7a578f0795
parentMay some KeyParameter methods public (diff)
downloadBouncyCastle.NET-ed25519-60eb88fe48601eb93c5fe98016f77858d1faa4b3.tar.xz
Add default case to switch statements
-rw-r--r--crypto/src/crypto/engines/AsconEngine.cs2
-rw-r--r--crypto/src/crypto/engines/SparkleEngine.cs2
2 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/crypto/engines/AsconEngine.cs b/crypto/src/crypto/engines/AsconEngine.cs
index fc38764d1..8fd49b03e 100644
--- a/crypto/src/crypto/engines/AsconEngine.cs
+++ b/crypto/src/crypto/engines/AsconEngine.cs
@@ -676,6 +676,8 @@ namespace Org.BouncyCastle.Crypto.Engines
                 P(nr);
                 break;
             }
+            default:
+                break;
             }
 
             // domain separation
diff --git a/crypto/src/crypto/engines/SparkleEngine.cs b/crypto/src/crypto/engines/SparkleEngine.cs
index 34c9bf015..4c558b70f 100644
--- a/crypto/src/crypto/engines/SparkleEngine.cs
+++ b/crypto/src/crypto/engines/SparkleEngine.cs
@@ -725,6 +725,8 @@ namespace Org.BouncyCastle.Crypto.Engines
                 ProcessFinalAad();
                 break;
             }
+            default:
+                break;
             }
 
             m_bufPos = 0;