a simple ASN.1 encoder and decoder
