summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-04-05 19:32:51 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-04-05 19:32:51 +0700
commitbaba49459359f37c10862872db13f2dd9526daa3 (patch)
tree4d70e955e3af23494de3095dabab59f3db25c07f
parentKeccak refactoring/performance (diff)
downloadBouncyCastle.NET-ed25519-baba49459359f37c10862872db13f2dd9526daa3.tar.xz
Add OIW dsaWithSHA1 OID to 'noParams'
-rw-r--r--crypto/src/crypto/operators/Asn1Signature.cs3
-rw-r--r--crypto/src/ocsp/OCSPUtil.cs1
-rw-r--r--crypto/src/pkcs/Pkcs10CertificationRequest.cs3
-rw-r--r--crypto/src/x509/X509Utilities.cs3
4 files changed, 7 insertions, 3 deletions
diff --git a/crypto/src/crypto/operators/Asn1Signature.cs b/crypto/src/crypto/operators/Asn1Signature.cs
index 66050789e..6a6ea0703 100644
--- a/crypto/src/crypto/operators/Asn1Signature.cs
+++ b/crypto/src/crypto/operators/Asn1Signature.cs
@@ -82,7 +82,8 @@ namespace Org.BouncyCastle.Crypto.Operators
 			noParams.Add(X9ObjectIdentifiers.ECDsaWithSha384);
 			noParams.Add(X9ObjectIdentifiers.ECDsaWithSha512);
 			noParams.Add(X9ObjectIdentifiers.IdDsaWithSha1);
-			noParams.Add(NistObjectIdentifiers.DsaWithSha224);
+            noParams.Add(OiwObjectIdentifiers.DsaWithSha1); 
+            noParams.Add(NistObjectIdentifiers.DsaWithSha224);
 			noParams.Add(NistObjectIdentifiers.DsaWithSha256);
 			noParams.Add(NistObjectIdentifiers.DsaWithSha384);
 			noParams.Add(NistObjectIdentifiers.DsaWithSha512);
diff --git a/crypto/src/ocsp/OCSPUtil.cs b/crypto/src/ocsp/OCSPUtil.cs
index e42e7f84f..da9053c4b 100644
--- a/crypto/src/ocsp/OCSPUtil.cs
+++ b/crypto/src/ocsp/OCSPUtil.cs
@@ -88,6 +88,7 @@ namespace Org.BouncyCastle.Ocsp
             noParams.Add(X9ObjectIdentifiers.ECDsaWithSha384);
             noParams.Add(X9ObjectIdentifiers.ECDsaWithSha512);
             noParams.Add(X9ObjectIdentifiers.IdDsaWithSha1);
+            noParams.Add(OiwObjectIdentifiers.DsaWithSha1);
             noParams.Add(NistObjectIdentifiers.DsaWithSha224);
             noParams.Add(NistObjectIdentifiers.DsaWithSha256);
 		}
diff --git a/crypto/src/pkcs/Pkcs10CertificationRequest.cs b/crypto/src/pkcs/Pkcs10CertificationRequest.cs
index 34bda3815..db3c4888c 100644
--- a/crypto/src/pkcs/Pkcs10CertificationRequest.cs
+++ b/crypto/src/pkcs/Pkcs10CertificationRequest.cs
@@ -141,7 +141,8 @@ namespace Org.BouncyCastle.Pkcs
 			noParams.Add(X9ObjectIdentifiers.ECDsaWithSha384);
 			noParams.Add(X9ObjectIdentifiers.ECDsaWithSha512);
 			noParams.Add(X9ObjectIdentifiers.IdDsaWithSha1);
-			noParams.Add(NistObjectIdentifiers.DsaWithSha224);
+            noParams.Add(OiwObjectIdentifiers.DsaWithSha1);
+            noParams.Add(NistObjectIdentifiers.DsaWithSha224);
 			noParams.Add(NistObjectIdentifiers.DsaWithSha256);
 
 			//
diff --git a/crypto/src/x509/X509Utilities.cs b/crypto/src/x509/X509Utilities.cs
index 52a122c21..9e4a83f45 100644
--- a/crypto/src/x509/X509Utilities.cs
+++ b/crypto/src/x509/X509Utilities.cs
@@ -79,7 +79,8 @@ namespace Org.BouncyCastle.X509
 			noParams.Add(X9ObjectIdentifiers.ECDsaWithSha384);
 			noParams.Add(X9ObjectIdentifiers.ECDsaWithSha512);
 			noParams.Add(X9ObjectIdentifiers.IdDsaWithSha1);
-			noParams.Add(NistObjectIdentifiers.DsaWithSha224);
+            noParams.Add(OiwObjectIdentifiers.DsaWithSha1);
+            noParams.Add(NistObjectIdentifiers.DsaWithSha224);
 			noParams.Add(NistObjectIdentifiers.DsaWithSha256);
 			noParams.Add(NistObjectIdentifiers.DsaWithSha384);
 			noParams.Add(NistObjectIdentifiers.DsaWithSha512);