Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 440 for readFull (0.22 sec)

  1. cmd/prune-junit-xml/prunexml_test.go

    etes/_output/local/go/src/k8s.io/kubernetes/vendor/google.golang.org/grpc/internal/transport/transport.go:483 +0x32
io.ReadAtLeast({0x55c5720, 0xc0e5f8edb0}, {0xc0efe16f88, 0x5, 0x5}, 0x5)
	/usr/local/go/src/io/io.go:331 +0x9a
io.ReadFull(...)
	/usr/local/go/src/io/io.go:350
k8s.io/kubernetes/vendor/google.golang.org/grpc/internal/transport.(*Stream).Read(0xc0f3cd67e0, {0xc0efe16f88, 0x5, 0x5})
	/home/prow/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/k...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 12:26:00 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. src/net/http/internal/chunked.go

    			if n > 0 && cr.r.Buffered() < 2 {
    				// We have some data. Return early (per the io.Reader
    				// contract) instead of potentially blocking while
    				// reading more.
    				break
    			}
    			if _, cr.err = io.ReadFull(cr.r, cr.buf[:2]); cr.err == nil {
    				if string(cr.buf[:]) != "\r\n" {
    					cr.err = errors.New("malformed chunked encoding")
    					break
    				}
    			} else {
    				if cr.err == io.EOF {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. src/crypto/ecdh/nist.go

    		if err != nil {
    			return nil, err
    		}
    		return newBoringPrivateKey(c, key, bytes)
    	}
    
    	key := make([]byte, len(c.scalarOrder))
    	randutil.MaybeReadByte(rand)
    	for {
    		if _, err := io.ReadFull(rand, key); err != nil {
    			return nil, err
    		}
    
    		// Mask off any excess bits if the size of the underlying field is not a
    		// whole number of bytes, which is only the case for P-521. We use a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/crypto/ecdsa/ecdsa.go

    func randomPoint[Point nistPoint[Point]](c *nistCurve[Point], rand io.Reader) (k *bigmod.Nat, p Point, err error) {
    	k = bigmod.NewNat()
    	for {
    		b := make([]byte, c.N.Size())
    		if _, err = io.ReadFull(rand, b); err != nil {
    			return
    		}
    
    		// Mask off any excess bits to increase the chance of hitting a value in
    		// (0, N). These are the most dangerous lines in the package and maybe in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/aes.go

    	blockSize := aes.BlockSize
    	paddingSize := blockSize - (len(data) % blockSize)
    	result := make([]byte, blockSize+len(data)+paddingSize)
    	iv := result[:blockSize]
    	if _, err := io.ReadFull(rand.Reader, iv); err != nil {
    		return nil, errors.New("unable to read sufficient random bytes")
    	}
    	copy(result[blockSize:], data)
    
    	// add PKCS#7 padding for CBC
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. src/internal/zstd/block.go

    		// We know that blockSize <= 128K,
    		// so this won't allocate an enormous amount.
    		need := blockSize - len(r.compressedBuf)
    		r.compressedBuf = append(r.compressedBuf, make([]byte, need)...)
    	}
    
    	if _, err := io.ReadFull(r.r, r.compressedBuf); err != nil {
    		return r.wrapNonEOFError(0, err)
    	}
    
    	data := block(r.compressedBuf)
    	off := 0
    	r.buffer = r.buffer[:0]
    
    	litoff, litbuf, err := r.readLiterals(data, off, r.literals[:0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 17:57:43 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  7. src/crypto/elliptic/elliptic.go

    	N := curve.Params().N
    	bitSize := N.BitLen()
    	byteLen := (bitSize + 7) / 8
    	priv = make([]byte, byteLen)
    
    	for x == nil {
    		_, err = io.ReadFull(rand, priv)
    		if err != nil {
    			return
    		}
    		// We have to mask off any excess bits in the case that the size of the
    		// underlying field is not a whole number of bytes.
    		priv[0] &= mask[bitSize%8]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/go.go

    	if *flagG {
    		return
    	}
    
    	if int64(int(length)) != length {
    		fmt.Fprintf(os.Stderr, "%s: too much pkg data in %s\n", os.Args[0], filename)
    		return
    	}
    
    	bdata := make([]byte, length)
    	if _, err := io.ReadFull(f, bdata); err != nil {
    		fmt.Fprintf(os.Stderr, "%s: short pkg read %s\n", os.Args[0], filename)
    		return
    	}
    	data := string(bdata)
    
    	// process header lines
    	for data != "" {
    		var line string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  9. src/crypto/tls/key_agreement.go

    	preMasterSecret := make([]byte, 48)
    	preMasterSecret[0] = byte(clientHello.vers >> 8)
    	preMasterSecret[1] = byte(clientHello.vers)
    	_, err := io.ReadFull(config.rand(), preMasterSecret[2:])
    	if err != nil {
    		return nil, nil, err
    	}
    
    	rsaKey, ok := cert.PublicKey.(*rsa.PublicKey)
    	if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. internal/ioutil/ioutil.go

    	var written int64
    	for {
    		buf := alignedBuf
    		if totalSize > 0 {
    			remaining := totalSize - written
    			if remaining < int64(len(buf)) {
    				buf = buf[:remaining]
    			}
    		}
    
    		nr, err := io.ReadFull(r, buf)
    		eof := errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF)
    		if err != nil && !eof {
    			return written, err
    		}
    
    		buf = buf[:nr]
    		var (
    			n  int
    			un int
    			nw int64
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top