summary refs log tree commit diff
path: root/crypto/src/asn1/cms/Evidence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/cms/Evidence.cs')
-rw-r--r--crypto/src/asn1/cms/Evidence.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/cms/Evidence.cs b/crypto/src/asn1/cms/Evidence.cs
index d240d234b..baa93d6b9 100644
--- a/crypto/src/asn1/cms/Evidence.cs
+++ b/crypto/src/asn1/cms/Evidence.cs
@@ -15,7 +15,7 @@ namespace Org.BouncyCastle.Asn1.Cms
             if (obj is Evidence evidence)
                 return evidence;
             if (obj is Asn1TaggedObject taggedObject)
-                return new Evidence(Asn1Utilities.CheckContextTag(taggedObject));
+                return new Evidence(Asn1Utilities.CheckContextTagClass(taggedObject));
 
             throw new ArgumentException("Unknown object in GetInstance: " + Platform.GetTypeName(obj), nameof(obj));
         }