math/big.Int.BitLen (method)
37 uses
math/big (current package)
float.go#L596: bits := uint32(x.BitLen())
int.go#L472: func (x *Int) BitLen() int {
crypto/dsa
dsa.go#L124: if p.BitLen() < L {
dsa.go#L165: xBytes := make([]byte, priv.Q.BitLen()/8)
dsa.go#L210: n := priv.Q.BitLen()
dsa.go#L292: n := pub.Q.BitLen()
crypto/ecdsa
ecdsa.go#L169: orderBits := c.Params().N.BitLen()
crypto/elliptic
elliptic.go#L287: bitSize := N.BitLen()
crypto/rand
util.go#L99: if p.ProbablyPrime(20) && p.BitLen() == bits {
util.go#L113: bitLen := n.BitLen()
crypto/rsa
pss.go#L211: emBits := priv.N.BitLen() - 1
pss.go#L296: emBits := pub.N.BitLen() - 1
pss.go#L298: if m.BitLen() > emLen*8 {
rsa.go#L53: return (pub.N.BitLen() + 7) / 8
rsa.go#L306: todo -= primes[i].BitLen()
rsa.go#L326: if n.BitLen() != bits {
crypto/tls
handshake_server_tls13.go#L640: rsaKey.N.BitLen()/8 < sigHash.Size()*2+2 { // key too small for RSA-PSS
crypto/x509
sec1.go#L55: privateKey := make([]byte, (key.Curve.Params().N.BitLen()+7)/8)
sec1.go#L102: privateKey := make([]byte, (curveOrder.BitLen()+7)/8)
golang.org/x/crypto/openpgp/elgamal
elgamal.go#L38: pLen := (pub.P.BitLen() + 7) / 8
golang.org/x/crypto/openpgp/packet
encrypted_key.go#L192: packetLen += 2 /* mpi size */ + (c1.BitLen()+7)/8
encrypted_key.go#L193: packetLen += 2 /* mpi size */ + (c2.BitLen()+7)/8
packet.go#L560: return writeMPI(w, uint16(i.BitLen()), i.Bytes())
packet.go#L566: k := (pub.N.BitLen() + 7) / 8
public_key.go#L178: bitLength: uint16(n.BitLen()),
public_key.go#L531: subgroupSize := (dsaPublicKey.Q.BitLen() + 7) / 8
public_key.go#L581: subgroupSize := (dsaPublicKey.Q.BitLen() + 7) / 8
signature.go#L527: subgroupSize := (dsaPriv.Q.BitLen() + 7) / 8
golang.org/x/crypto/ssh
kex.go#L596: if kexDHGexGroup.P.BitLen() < dhGroupExchangeMinimumBits || kexDHGexGroup.P.BitLen() > dhGroupExchangeMaximumBits {
kex.go#L597: return nil, fmt.Errorf("ssh: server-generated gex p is out of range (%d bits)", kexDHGexGroup.P.BitLen())
keys.go#L353: if w.E.BitLen() > 24 {
keys.go#L415: if l := param.P.BitLen(); l != 1024 {
messages.go#L665: bitLen := nMinus1.BitLen()
messages.go#L674: bitLen := n.BitLen()
golang.org/x/crypto/ssh/agent
server.go#L245: if k.E.BitLen() > 30 {
server.go#L393: if rsaPub.E.BitLen() > 30 {
![]() |
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. |