summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/test/src/crypto/test/Ed25519Test.cs2
-rw-r--r--crypto/test/src/crypto/test/Ed448Test.cs12
2 files changed, 7 insertions, 7 deletions
diff --git a/crypto/test/src/crypto/test/Ed25519Test.cs b/crypto/test/src/crypto/test/Ed25519Test.cs
index 1402cce68..f1cca0aab 100644
--- a/crypto/test/src/crypto/test/Ed25519Test.cs
+++ b/crypto/test/src/crypto/test/Ed25519Test.cs
@@ -78,7 +78,7 @@ namespace Org.BouncyCastle.Crypto.Tests
             case Ed25519.Algorithm.Ed25519ph:
                 return new Ed25519phSigner(context);
             default:
-                throw new ArgumentException("algorithm");
+                throw new ArgumentException(nameof(algorithm));
             }
         }
 
diff --git a/crypto/test/src/crypto/test/Ed448Test.cs b/crypto/test/src/crypto/test/Ed448Test.cs
index 6ecbdebf7..30b32474f 100644
--- a/crypto/test/src/crypto/test/Ed448Test.cs
+++ b/crypto/test/src/crypto/test/Ed448Test.cs
@@ -81,12 +81,12 @@ namespace Org.BouncyCastle.Crypto.Tests
         {
             switch (algorithm)
             {
-                case Ed448.Algorithm.Ed448:
-                    return new Ed448Signer(context);
-                case Ed448.Algorithm.Ed448ph:
-                    return new Ed448phSigner(context);
-                default:
-                    throw new ArgumentException("algorithm");
+            case Ed448.Algorithm.Ed448:
+                return new Ed448Signer(context);
+            case Ed448.Algorithm.Ed448ph:
+                return new Ed448phSigner(context);
+            default:
+                throw new ArgumentException(nameof(algorithm));
             }
         }