BIT STRING Value

ASN.1 values of type BIT STRING are mapped to Go variables of type asn1.BitString. The ASN.1 values may be defined using binary strings, hexadecimal strings, or using sets of named bits:

ASN.1 production:

   <name> BIT STRING ::= '<bstring>'B

Generated code :

   var Asn1v<name> asn1.BitString = asn1.BitString{ BitLength: <len>, Bytes: []byte{<data>}}

where <len> would be the length in bits and <data> would be a comma-separated list of hexadeciaml byte constants.