summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/Contributors.html3
-rw-r--r--crypto/src/crypto/util/OpenSshPublicKeyUtilities.cs2
2 files changed, 4 insertions, 1 deletions
diff --git a/crypto/Contributors.html b/crypto/Contributors.html
index 7764cac94..81a03b6a0 100644
--- a/crypto/Contributors.html
+++ b/crypto/Contributors.html
@@ -286,6 +286,9 @@ University of Wollongong, Institute of Cybersecurity and Cryptology, under the s
 		<li>
 			<p>Arman Gungor (https://github.com/gungora) - Fixed SignerId.Equals.</p>
 		</li>
+		<li>
+			<p>Scott Xu (https://github.com/scott-xu) - Fixed exception message.</p>
+		</li>
 		</ul>
 	</body>
 </html>
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");
         }
 
         /**