Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for miblen (0.2 sec)

  1. src/net/netip/netip.go

    	var val, pos int
    	var digLen int // number of digits in current octet
    	s := in[off:end]
    	for i := 0; i < len(s); i++ {
    		if s[i] >= '0' && s[i] <= '9' {
    			if digLen == 1 && val == 0 {
    				return parseAddrError{in: in, msg: "IPv4 field has octet with leading zero"}
    			}
    			val = val*10 + int(s[i]) - '0'
    			digLen++
    			if val > 255 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. src/net/netip/inlining_test.go

    		got[strings.TrimPrefix(string(match), " can inline ")] = true
    		return nil
    	})
    	wantInlinable := []string{
    		"(*uint128).halves",
    		"Addr.BitLen",
    		"Addr.hasZone",
    		"Addr.Is4",
    		"Addr.Is4In6",
    		"Addr.Is6",
    		"Addr.IsInterfaceLocalMulticast",
    		"Addr.IsValid",
    		"Addr.IsUnspecified",
    		"Addr.Less",
    		"Addr.Unmap",
    		"Addr.Zone",
    		"Addr.v4",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. security/pkg/pki/util/crypto.go

    	if t := reflect.TypeOf(privKey); t != reflect.TypeOf(&rsa.PrivateKey{}) {
    		return 0, fmt.Errorf("key type is not RSA: %v", t)
    	}
    	pkey := privKey.(*rsa.PrivateKey)
    	return pkey.N.BitLen(), nil
    }
    
    // GetEllipticCurve returns the type of curve associated with the private key;
    // if ECDSA is used, then only 384 and 256 (default) are returned; if non-ECDSA
    // is used then an error is returned
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 13:00:07 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. src/crypto/x509/oid.go

    		o &= 0x7f
    		if i != 0 {
    			o |= 0x80
    		}
    		dst = append(dst, o)
    	}
    	return dst
    }
    
    func base128BigIntLength(n *big.Int) int {
    	if n.Cmp(big.NewInt(0)) == 0 {
    		return 1
    	}
    	return (n.BitLen() + 6) / 7
    }
    
    func appendBase128BigInt(dst []byte, n *big.Int) []byte {
    	if n.Cmp(big.NewInt(0)) == 0 {
    		return append(dst, 0)
    	}
    
    	for i := base128BigIntLength(n) - 1; i >= 0; i-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/windows/security_windows.go

    //sys	GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) = userenv.GetUserProfileDirectoryW
    //sys	getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetSystemDirectoryW
    //sys	getWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetWindowsDirectoryW
    //sys	getSystemWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetSystemWindowsDirectoryW
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  6. src/math/big/float.go

    // If z's precision is 0, it is changed to the larger of x.BitLen()
    // or 64 (and rounding will have no effect).
    func (z *Float) SetInt(x *Int) *Float {
    	// TODO(gri) can be more efficient if z.prec > 0
    	// but small compared to the size of x, or if there
    	// are many trailing 0's.
    	bits := uint32(x.BitLen())
    	if z.prec == 0 {
    		z.prec = umax32(bits, 64)
    	}
    	z.acc = Exact
    	z.neg = x.neg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/serviceentry/conversion.go

    					hostAddresses = append(hostAddresses, &HostAddress{hostname, address})
    				} else if cidr, cidrErr := netip.ParsePrefix(address); cidrErr == nil {
    					newAddress := address
    					if cidr.Bits() == cidr.Addr().BitLen() {
    						// /32 mask. Remove the /32 and make it a normal IP address
    						newAddress = cidr.Addr().String()
    					}
    					hostAddresses = append(hostAddresses, &HostAddress{hostname, newAddress})
    				}
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	return
    }
    
    func LookupAccountName(systemName *uint16, accountName *uint16, sid *SID, sidLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  9. src/crypto/tls/cipher_suites.go

    // mechanism, as well as the cipher+MAC pair or the AEAD.
    type cipherSuite struct {
    	id uint16
    	// the lengths, in bytes, of the key material needed for each component.
    	keyLen int
    	macLen int
    	ivLen  int
    	ka     func(version uint16) keyAgreement
    	// flags is a bitmask of the suite* values, above.
    	flags  int
    	cipher func(key, iv []byte, isRead bool) any
    	mac    func(key []byte) hash.Hash
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. pilot/pkg/networking/util/util.go

    	}
    
    	// Otherwise it is a raw IP. Make it a /32 or /128 depending on family
    	ipa, err := netip.ParseAddr(addr)
    	if err != nil {
    		return netip.Prefix{}, err
    	}
    
    	return netip.PrefixFrom(ipa, ipa.BitLen()), nil
    }
    
    // AddrStrToCidrRange converts from string to CIDR proto
    func AddrStrToCidrRange(addr string) (*core.CidrRange, error) {
    	prefix, err := AddrStrToPrefix(addr)
    	if err != nil {
    		return nil, err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top