summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/src/asn1/isismtt/ocsp/CertHash.cs2
-rw-r--r--crypto/src/asn1/pkcs/SignerInfo.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/isismtt/ocsp/CertHash.cs b/crypto/src/asn1/isismtt/ocsp/CertHash.cs
index 5773e1c56..be9fbd608 100644
--- a/crypto/src/asn1/isismtt/ocsp/CertHash.cs
+++ b/crypto/src/asn1/isismtt/ocsp/CertHash.cs
@@ -68,7 +68,7 @@ namespace Org.BouncyCastle.Asn1.IsisMtt.Ocsp
 				throw new ArgumentException("Bad sequence size: " + seq.Count);
 
 			this.hashAlgorithm = AlgorithmIdentifier.GetInstance(seq[0]);
-			this.certificateHash = DerOctetString.GetInstance(seq[1]).GetOctets();
+			this.certificateHash = Asn1OctetString.GetInstance(seq[1]).GetOctets();
 		}
 
 		/**
diff --git a/crypto/src/asn1/pkcs/SignerInfo.cs b/crypto/src/asn1/pkcs/SignerInfo.cs
index 777251e84..532a564f3 100644
--- a/crypto/src/asn1/pkcs/SignerInfo.cs
+++ b/crypto/src/asn1/pkcs/SignerInfo.cs
@@ -74,7 +74,7 @@ namespace Org.BouncyCastle.Asn1.Pkcs
             }
 
 			e.MoveNext();
-            encryptedDigest = DerOctetString.GetInstance(e.Current);
+            encryptedDigest = Asn1OctetString.GetInstance(e.Current);
 
 			if (e.MoveNext())
             {