encoding/asn1.BitString.BitLength (field)
14 uses
encoding/asn1 (current package)
asn1.go#L163: BitLength int // length in bits.
asn1.go#L169: if i < 0 || i >= b.BitLength {
asn1.go#L180: shift := uint(8 - (b.BitLength % 8))
asn1.go#L208: ret.BitLength = (len(bytes)-1)*8 - paddingBits
marshal.go#L280: dst[0] = byte((8 - b.BitLength%8) % 8)
crypto/x509
x509.go#L164: BitLength: 8 * len(publicKeyBytes),
x509.go#L1419: ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
x509.go#L1763: encodedPublicKey := asn1.BitString{BitLength: len(publicKeyBytes) * 8, Bytes: publicKeyBytes}
x509.go#L1789: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L1886: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2167: BitLength: len(publicKeyBytes) * 8,
x509.go#L2187: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2539: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L565: out.BitLength = len(bytes)*8 - int(paddingBits)