12 private bool configured;
24 public override string Oid =>
"2.23.136.1.1.1";
38 if (SecurityInfo.Length < 3)
41 if (SecurityInfo.FirstElement is not
System.Numerics.BigInteger
Version)
52 if (Item is
null || Item is not
HashFunction HashFunction2)
55 HashFunctions2.
Add(HashFunction2);
66 Dictionary<int, byte[]> DataGroupHashValues2 = [];
71 Item is not Vector ItemArray ||
72 ItemArray.Length < 2 ||
73 ItemArray.FirstElement is not
System.Numerics.BigInteger DataGroup ||
74 DataGroup < int.MinValue || DataGroup >
int.MaxValue ||
75 ItemArray[1] is not
byte[] Digest)
80 DataGroupHashValues2[(int)DataGroup] = Digest;
83 this.HashFunctions = [.. HashFunctions2];
84 this.DataGroupHashValues = DataGroupHashValues2;
85 this.configured =
true;
Abstract base class for hash functions.
LDS Security Object V1. Reference: §4.6.2.3, ICAO Doc 9303-10.
HashFunction?[] HashFunctions
Hash Functions used
override bool IsConfigured
If the object has been configured.
override string Oid
OID identifying the type of object.
Dictionary< int, byte[]>? DataGroupHashValues
Data Group Hash Values.
override bool Configure(Vector SecurityInfo)
If the object can be configured by the security information provided.
LdsSecurityObject()
LDS Security Object V1. Reference: §4.6.2.3, ICAO Doc 9303-10.
int Version
Version of document.
Abstract base class for security objects.
A chunked list is a linked list of chunks of objects of type T .
void Add(T Item)
Adds an item to the collection.