From e19c15d2a9007459d757b7b4bc93111a37c908ac Mon Sep 17 00:00:00 2001 From: Scott Xu Date: Tue, 23 May 2023 15:26:55 +0800 Subject: Correct the error message - see https://github.com/bcgit/bc-csharp/pull/460 --- crypto/src/crypto/util/OpenSshPublicKeyUtilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src') 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"); } /** -- cgit 1.4.1