Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for biglen (0.14 sec)

  1. src/crypto/rsa/rsa.go

    			if err != nil {
    				return nil, err
    			}
    			todo -= primes[i].BitLen()
    		}
    
    		// Make sure that primes is pairwise unequal.
    		for i, prime := range primes {
    			for j := 0; j < i; j++ {
    				if prime.Cmp(primes[j]) == 0 {
    					continue NextSetOfPrimes
    				}
    			}
    		}
    
    		n := new(big.Int).Set(bigOne)
    		totient := new(big.Int).Set(bigOne)
    		pminus1 := new(big.Int)
    		for _, prime := range primes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. 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)
  3. src/crypto/ecdsa/ecdsa.go

    func (k *PrivateKey) ECDH() (*ecdh.PrivateKey, error) {
    	c := curveToECDH(k.Curve)
    	if c == nil {
    		return nil, errors.New("ecdsa: unsupported curve by crypto/ecdh")
    	}
    	size := (k.Curve.Params().N.BitLen() + 7) / 8
    	if k.D.BitLen() > size*8 {
    		return nil, errors.New("ecdsa: invalid private key")
    	}
    	return c.NewPrivateKey(k.D.FillBytes(make([]byte, size)))
    }
    
    func curveToECDH(c elliptic.Curve) ecdh.Curve {
    	switch c {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. src/crypto/internal/bigmod/nat.go

    	m.nat = NewNat().setBig(n)
    	m.leading = _W - bitLen(m.nat.limbs[len(m.nat.limbs)-1])
    	m.m0inv = minusInverseModW(m.nat.limbs[0])
    	m.rr = rr(m)
    	return m, nil
    }
    
    // bitLen is a version of bits.Len that only leaks the bit length of n, but not
    // its value. bits.Len and bits.LeadingZeros use a lookup table for the
    // low-order bits on some architectures.
    func bitLen(n uint) int {
    	var len int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. src/crypto/rsa/pss.go

    // given hash function. salt is a random sequence of bytes whose length will be
    // later used to verify the signature.
    func signPSSWithSalt(priv *PrivateKey, hash crypto.Hash, hashed, salt []byte) ([]byte, error) {
    	emBits := priv.N.BitLen() - 1
    	em, err := emsaPSSEncode(hashed, emBits, salt, hash.New())
    	if err != nil {
    		return nil, err
    	}
    
    	if boring.Enabled {
    		bkey, err := boringPrivateKey(priv)
    		if err != nil {
    			return nil, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/crypto/tls/key_agreement.go

    		if err != nil {
    			return err
    		}
    	}
    	if (sigType == signaturePKCS1v15 || sigType == signatureRSAPSS) != ka.isRSA {
    		return errServerKeyExchange
    	}
    
    	sigLen := int(sig[0])<<8 | int(sig[1])
    	if sigLen+2 != len(sig) {
    		return errServerKeyExchange
    	}
    	sig = sig[2:]
    
    	signed := hashForServerKeyExchange(sigType, sigHash, ka.version, clientHello.random, serverHello.random, serverECDHEParams)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/settings.md

    And the `items_per_user` would keep its default value of `50`.
    
    ## Settings in another module
    
    You could put those settings in another module file as you saw in [Bigger Applications - Multiple Files](../tutorial/bigger-applications.md){.internal-link target=_blank}.
    
    For example, you could have a file `config.py` with:
    
    ```Python
    {!../../../docs_src/settings/app01/config.py!}
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. src/syscall/fs_wasip1.go

    type lookupflags = uint32
    type oflags = uint32
    type rights = uint64
    type timestamp = uint64
    type dircookie = uint64
    type filedelta = int64
    type fstflags = uint32
    
    type iovec struct {
    	buf    uintptr32
    	bufLen size
    }
    
    const (
    	LOOKUP_SYMLINK_FOLLOW = 0x00000001
    )
    
    const (
    	OFLAG_CREATE    = 0x0001
    	OFLAG_DIRECTORY = 0x0002
    	OFLAG_EXCL      = 0x0004
    	OFLAG_TRUNC     = 0x0008
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  9. src/os/os_windows_test.go

    	if err != nil {
    		return err
    	}
    	defer syscall.CloseHandle(fd)
    
    	buflen := uint32(rdb.header.ReparseDataLength) + uint32(unsafe.Sizeof(rdb.header))
    	var bytesReturned uint32
    	return syscall.DeviceIoControl(fd, windows.FSCTL_SET_REPARSE_POINT,
    		(*byte)(unsafe.Pointer(&rdb.header)), buflen, nil, 0, &bytesReturned, nil)
    }
    
    func createMountPoint(link string, target *reparseData) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  10. src/net/ip.go

    		return nil, nil, &ParseError{Type: "CIDR address", Text: s}
    	}
    
    	n, i, ok := dtoi(mask)
    	if !ok || i != len(mask) || n < 0 || n > ipAddr.BitLen() {
    		return nil, nil, &ParseError{Type: "CIDR address", Text: s}
    	}
    	m := CIDRMask(n, ipAddr.BitLen())
    	addr16 := ipAddr.As16()
    	return IP(addr16[:]), &IPNet{IP: IP(addr16[:]).Mask(m), Mask: m}, nil
    }
    
    func copyIP(x IP) IP {
    	y := make(IP, len(x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top