diff options
author | Scott Xu <scott-xu@msn.com> | 2023-05-23 15:26:55 +0800 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-05-23 16:10:39 +0700 |
commit | e19c15d2a9007459d757b7b4bc93111a37c908ac (patch) | |
tree | 441d4a0695f5e78044ee7c34001fe45cef8a6e1b /crypto/src | |
parent | Refactoring in NtruPrimeEngine (diff) | |
download | BouncyCastle.NET-ed25519-e19c15d2a9007459d757b7b4bc93111a37c908ac.tar.xz |
Correct the error message
- see https://github.com/bcgit/bc-csharp/pull/460
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/util/OpenSshPublicKeyUtilities.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/util/OpenSshPublicKeyUtilities.cs b/crypto/src/crypto/util/OpenSshPublicKeyUtilities.cs index f04ab85f7..ce305a898 100644 --- a/crypto/src/crypto/util/OpenSshPublicKeyUtilities.cs +++ b/crypto/src/crypto/util/OpenSshPublicKeyUtilities.cs @@ -89,7 +89,7 @@ namespace Org.BouncyCastle.Crypto.Utilities return builder.GetBytes(); } - throw new ArgumentException("unable to convert " + Platform.GetTypeName(cipherParameters) + " to private key"); + throw new ArgumentException("unable to convert " + Platform.GetTypeName(cipherParameters) + " to public key"); } /** |