Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for baseNonce (0.14 sec)

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

    		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

    				t.Errorf("unexpected key, got: %x, want %x", context.key, expectedKey)
    			}
    			expectedBaseNonce := mustDecodeHex(t, setup["base_nonce"])
    			if !bytes.Equal(context.baseNonce, expectedBaseNonce) {
    				t.Errorf("unexpected base nonce, got: %x, want %x", context.baseNonce, expectedBaseNonce)
    			}
    			expectedExporterSecret := mustDecodeHex(t, setup["exporter_secret"])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top