FreeDSx / ASN1

An ASN.1 Library for PHP.
MIT License
11 stars 3 forks source link

A better way to validate ASN.1 structures #1

Open ChadSikorra opened 6 years ago

ChadSikorra commented 6 years ago

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.