encoding/asn1.BitString.BitLength (field)
15 uses
encoding/asn1 (current package)
asn1.go#L164: BitLength int // length in bits.
asn1.go#L170: if i < 0 || i >= b.BitLength {
asn1.go#L181: shift := uint(8 - (b.BitLength % 8))
asn1.go#L209: 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#L1436: ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
x509.go#L1782: encodedPublicKey := asn1.BitString{BitLength: len(publicKeyBytes) * 8, Bytes: publicKeyBytes}
x509.go#L1808: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L1907: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2188: BitLength: len(publicKeyBytes) * 8,
x509.go#L2208: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2561: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
golang.org/x/crypto/cryptobyte
asn1.go#L565: out.BitLength = len(bytes)*8 - int(paddingBits)
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L565: out.BitLength = len(bytes)*8 - int(paddingBits)
 |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |