encoding/asn1.BitString.BitLength (field)
14 uses
encoding/asn1 (current package)
asn1.go#L162: BitLength int // length in bits.
asn1.go#L168: if i < 0 || i >= b.BitLength {
asn1.go#L179: shift := uint(8 - (b.BitLength % 8))
asn1.go#L207: ret.BitLength = (len(bytes)-1)*8 - paddingBits
marshal.go#L282: dst[0] = byte((8 - b.BitLength%8) % 8)
crypto/x509
x509.go#L163: BitLength: 8 * len(publicKeyBytes),
x509.go#L1331: ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
x509.go#L1614: encodedPublicKey := asn1.BitString{BitLength: len(publicKeyBytes) * 8, Bytes: publicKeyBytes}
x509.go#L1656: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L1770: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2053: BitLength: len(publicKeyBytes) * 8,
x509.go#L2083: BitLength: len(signature) * 8,
x509.go#L2450: 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)
|
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |