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#L131: BitLength: 8 * len(publicKeyBytes),
x509.go#L1925: ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
x509.go#L2194: encodedPublicKey := asn1.BitString{BitLength: len(publicKeyBytes) * 8, Bytes: publicKeyBytes}
x509.go#L2237: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2351: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2626: BitLength: len(publicKeyBytes) * 8,
x509.go#L2656: BitLength: len(signature) * 8,
x509.go#L2863: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L486: out.BitLength = len(bytes)*8 - int(paddingBits)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |