encoding/asn1.BitString.BitLength (field)
14 uses
encoding/asn1 (current package)
asn1.go#L161: BitLength int // length in bits.
asn1.go#L167: if i < 0 || i >= b.BitLength {
asn1.go#L178: shift := uint(8 - (b.BitLength % 8))
asn1.go#L206: ret.BitLength = (len(bytes)-1)*8 - paddingBits
marshal.go#L282: dst[0] = byte((8 - b.BitLength%8) % 8)
crypto/x509
x509.go#L130: BitLength: 8 * len(publicKeyBytes),
x509.go#L1271: ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
x509.go#L1550: encodedPublicKey := asn1.BitString{BitLength: len(publicKeyBytes) * 8, Bytes: publicKeyBytes}
x509.go#L1593: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L1710: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L1985: BitLength: len(publicKeyBytes) * 8,
x509.go#L2015: BitLength: len(signature) * 8,
x509.go#L2222: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L543: out.BitLength = len(bytes)*8 - int(paddingBits)