summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1Utilities.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-06-24 15:23:25 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-06-24 15:23:25 +0700
commitb8bdf1e145533808d9d8594c1817a124c3cf5c9e (patch)
tree82541021db1369673e9400bc339551cdefade9b3 /crypto/src/asn1/Asn1Utilities.cs
parentAdd support for modified UTF-8 in JKS (diff)
downloadBouncyCastle.NET-ed25519-b8bdf1e145533808d9d8594c1817a124c3cf5c9e.tar.xz
Add TODO
Diffstat (limited to 'crypto/src/asn1/Asn1Utilities.cs')
-rw-r--r--crypto/src/asn1/Asn1Utilities.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1Utilities.cs b/crypto/src/asn1/Asn1Utilities.cs
index 169f1fb37..c3449c050 100644
--- a/crypto/src/asn1/Asn1Utilities.cs
+++ b/crypto/src/asn1/Asn1Utilities.cs
@@ -661,6 +661,10 @@ namespace Org.BouncyCastle.Asn1
         public static TResult ReadTagged<TState, TResult>(Asn1Sequence sequence, ref int sequencePosition, int tagClass,
             int tagNo, TState state, Func<Asn1TaggedObject, TState, TResult> constructor)
         {
+            /*
+             * TODO We might want to check the position and throw a better exception, but current ASN.1 types aren't
+             * doing that, so leave it until it can be consistent.
+             */
             var tagged = Asn1TaggedObject.GetInstance(sequence[sequencePosition++], tagClass, tagNo);
 
             return constructor(tagged, state);