Currently validating an ASN.1 structure is quite a pain. It requires a lot of manual effort. There should be a object-oriented way to build up a list of requirements that the structure must adhere to, then evaluate an existing ASN.1 type against those rules. This would eliminate a lot of error-prone loops and individual checks after constructing a structure from binary form.
Currently validating an ASN.1 structure is quite a pain. It requires a lot of manual effort. There should be a object-oriented way to build up a list of requirements that the structure must adhere to, then evaluate an existing ASN.1 type against those rules. This would eliminate a lot of error-prone loops and individual checks after constructing a structure from binary form.