An architecture for an asn.1 encoder/decoder