Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 132 for badlen (0.08 sec)

  1. 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)
  2. src/crypto/x509/boring_test.go

    	} else {
    		pcert = tmpl
    		pkey = key
    	}
    
    	var pub interface{}
    	var desc string
    	switch k := key.(type) {
    	case *rsa.PrivateKey:
    		pub = &k.PublicKey
    		desc = fmt.Sprintf("RSA-%d", k.N.BitLen())
    	case *ecdsa.PrivateKey:
    		pub = &k.PublicKey
    		desc = "ECDSA-" + k.Curve.Params().Name
    	default:
    		t.Fatalf("invalid key %T", key)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 17:38:47 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. src/crypto/internal/hpke/hpke.go

    	for i := range s.baseNonce {
    		nonce[i] ^= s.baseNonce[i]
    	}
    	// Message limit is, according to the RFC, 2^95+1, which
    	// is somewhat confusing, but we do as we're told.
    	if s.seqNum.bitLen() >= (s.aead.NonceSize()*8)-1 {
    		panic("message limit reached")
    	}
    	s.seqNum = s.seqNum.addOne()
    	return nonce
    }
    
    func (s *Sender) Seal(aad, plaintext []byte) ([]byte, error) {
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. src/encoding/asn1/marshal.go

    			t.tag = bytesEncoder(appendTagAndLength(t.scratch[:0], tagAndLength{ClassUniversal, tag, bodyLen, isCompound}))
    
    			tt := new(taggedEncoder)
    
    			tt.body = t
    
    			tt.tag = bytesEncoder(appendTagAndLength(tt.scratch[:0], tagAndLength{
    				class:      class,
    				tag:        *params.tag,
    				length:     bodyLen + t.tag.Len(),
    				isCompound: true,
    			}))
    
    			return tt, nil
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. src/go/types/const.go

    		check.representable(x, under(x.typ).(*Basic))
    		return
    	}
    
    	// Untyped integer values must not grow arbitrarily.
    	const prec = 512 // 512 is the constant precision
    	if x.val.Kind() == constant.Int && constant.BitLen(x.val) > prec {
    		op := opName(x.expr)
    		if op != "" {
    			op += " "
    		}
    		check.errorf(atPos(opPos), InvalidConstVal, "constant %soverflow", op)
    		x.val = constant.MakeUnknown()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. src/net/netip/netip.go

    func (ip Addr) IsValid() bool { return ip.z != z0 }
    
    // BitLen returns the number of bits in the IP address:
    // 128 for IPv6, 32 for IPv4, and 0 for the zero [Addr].
    //
    // Note that IPv4-mapped IPv6 addresses are considered IPv6 addresses
    // and therefore have bit length 128.
    func (ip Addr) BitLen() int {
    	switch ip.z {
    	case z0:
    		return 0
    	case z4:
    		return 32
    	}
    	return 128
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  7. 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)
  8. src/math/big/rat.go

    		Esize = Fsize - Msize1
    		Ebias = 1<<(Esize-1) - 1
    		Emin  = 1 - Ebias
    		Emax  = Ebias
    	)
    
    	// TODO(adonovan): specialize common degenerate cases: 1.0, integers.
    	alen := a.bitLen()
    	if alen == 0 {
    		return 0, true
    	}
    	blen := b.bitLen()
    	if blen == 0 {
    		panic("division by zero")
    	}
    
    	// 1. Left-shift A or B such that quotient A/B is in [1<<Msize1, 1<<(Msize2+1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/arm64/list7.go

    		return fmt.Sprintf("V%d.%s", r&31, arrange((r>>5)&15))
    	}
    	// Return system register name.
    	name, _, _ := SysRegEnc(int16(r))
    	if name != "" {
    		return name
    	}
    	return fmt.Sprintf("badreg(%d)", r)
    }
    
    func DRconv(a int) string {
    	if a >= C_NONE && a <= C_NCLASS {
    		return cnames7[a]
    	}
    	return "C_??"
    }
    
    func SPCconv(a int64) string {
    	spc := SpecialOperand(a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 17:56:30 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. test/noinit.go

    func F0() *S { return &S{1, 2, 3} }
    
    var LitSNoArgs = F0()
    
    var myError = errors.New("mine")
    
    func gopherize(s string) string { return "gopher gopher gopher " + s }
    
    var animals = gopherize("badger")
    
    // These init funcs should optimize away.
    
    func init() {
    }
    
    func init() {
    	if false {
    	}
    }
    
    func init() {
    	for false {
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 17:57:36 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top