Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for nextNonce (0.1 sec)

  1. src/crypto/internal/hpke/hpke.go

    		aead:           aead,
    		sharedSecret:   sharedSecret,
    		suiteID:        suiteID,
    		key:            key,
    		baseNonce:      baseNonce,
    		exporterSecret: exporterSecret,
    	}, nil
    }
    
    func (s *Sender) nextNonce() []byte {
    	nonce := s.seqNum.bytes()[16-s.aead.NonceSize():]
    	for i := range s.baseNonce {
    		nonce[i] ^= s.baseNonce[i]
    	}
    	// Message limit is, according to the RFC, 2^95+1, which
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. src/crypto/internal/hpke/hpke_test.go

    					if err != nil {
    						t.Fatal(err)
    					}
    					context.seqNum = uint128{lo: uint64(seqNum)}
    					expectedNonce := mustDecodeHex(t, enc["nonce"])
    					// We can't call nextNonce, because it increments the sequence number,
    					// so just compute it directly.
    					computedNonce := context.seqNum.bytes()[16-context.aead.NonceSize():]
    					for i := range context.baseNonce {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/net/http/client_test.go

    			t.Fatalf("failed to produce expected timeout before test deadline")
    		}
    		t.Logf("attempting test with timeout %v", timeout)
    		cst.c.Timeout = timeout
    
    		mu.Lock()
    		nonce = fmt.Sprint(nextNonce)
    		nextNonce++
    		sawSlowNonce = false
    		mu.Unlock()
    		res, err := cst.c.Get(cst.ts.URL + "/?nonce=" + nonce)
    		if err != nil {
    			if strings.Contains(err.Error(), "Client.Timeout") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/unicode/norm/iter.go

    	return i.rb.src.bytes[a:b]
    }
    
    // Pos returns the byte position at which the next call to Next will commence processing.
    func (i *Iter) Pos() int {
    	return i.p
    }
    
    func (i *Iter) setDone() {
    	i.next = nextDone
    	i.p = i.rb.nsrc
    }
    
    // Done returns true if there is no more input to process.
    func (i *Iter) Done() bool {
    	return i.p >= i.rb.nsrc
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/text/unicode/norm/iter.go

    	return i.rb.src.bytes[a:b]
    }
    
    // Pos returns the byte position at which the next call to Next will commence processing.
    func (i *Iter) Pos() int {
    	return i.p
    }
    
    func (i *Iter) setDone() {
    	i.next = nextDone
    	i.p = i.rb.nsrc
    }
    
    // Done returns true if there is no more input to process.
    func (i *Iter) Done() bool {
    	return i.p >= i.rb.nsrc
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11K bytes
    - Viewed (0)
Back to top