asn.1der

Is there a standard way to DER encode an ASN.1 schema?


Given some type definition (or collection of type definitions) such as:

Foo ::= SEQUENCE {
   field1 UTF8String,
   field2 INTEGER
}

Is there a standard way to DER encode this? Obviously I can encode it as a string but that's totally besides the point, that is trivial to do and I already know how to do that.


Solution

  • The ASN.1 committee discussed the idea of creating an ASN.1 type for conveying schema information, but chose not to attempt to add any such type into ASN.1. So the ASN.1 Recommendations do not include any "standard" way of encoding schema definitions.