summary refs log tree commit diff
path: root/crypto/src/x509/X509SignatureUtil.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-04-05 13:58:29 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-04-05 13:58:29 +0700
commita50f22c7ecc8d6a238b9bb5ca9d8f453d5f00e3c (patch)
tree3ce1d940538d5a738766d96f1f93cb205461b95e /crypto/src/x509/X509SignatureUtil.cs
parentFix bad MAC padding length calculation (diff)
downloadBouncyCastle.NET-ed25519-a50f22c7ecc8d6a238b9bb5ca9d8f453d5f00e3c.tar.xz
Improve SigAlgName for certs/CRLs
Diffstat (limited to '')
-rw-r--r--crypto/src/x509/X509SignatureUtil.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/src/x509/X509SignatureUtil.cs b/crypto/src/x509/X509SignatureUtil.cs
index 83863aee1..6a6c0cf2d 100644
--- a/crypto/src/x509/X509SignatureUtil.cs
+++ b/crypto/src/x509/X509SignatureUtil.cs
@@ -9,6 +9,7 @@ using Org.BouncyCastle.Asn1.TeleTrust;
 using Org.BouncyCastle.Asn1.X509;
 using Org.BouncyCastle.Asn1.X9;
 using Org.BouncyCastle.Crypto;
+using Org.BouncyCastle.Security;
 
 namespace Org.BouncyCastle.X509
 {
@@ -69,6 +70,12 @@ namespace Org.BouncyCastle.X509
 				}
 			}
 
+            string sigName = SignerUtilities.GetEncodingName(sigAlgId.Algorithm);
+            if (null != sigName)
+            {
+                return sigName;
+            }
+
             return sigAlgId.Algorithm.Id;
 		}