/ libder / README.md
README.md
 1  # libder - a set of functions to encode/decode anything to/from DER
 2  
 3  ## Principle: structures as code
 4  
 5  Structures as code means that the code defines the structure. That
 6  directs how this library is made.
 7  
 8  ## A set of functions that encode anything into DER
 9  
10  Following structures as code principles, this library contains a set of
11  functions to be used to encode values from the language\'s own types.
12  
13  These functions have names starting with `derw_`, and for most of them,
14  the rest of their names are derived from ASN.1 primitive types, with
15  some additional tag to distinguish variants when C types require it.
16  
17  ## A set of functions that decode anything from DER
18  
19  Following structures as code principles, this library contains a set of
20  functions to be used to decode DER into the language\'s own types.
21  
22  These functions have names starting with `derr_`, and for most of them,
23  the rest of their names are derived from ASN.1 primitive types, with
24  some additional tag to distinguish variants when C types require it.