Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for pre_shared_key (0.1 sec)

  1. src/crypto/tls/handshake_messages.go

    			exts.AddUint8LengthPrefixed(func(exts *cryptobyte.Builder) {
    				for _, e := range echOuterExts {
    					exts.AddUint16(e)
    				}
    			})
    		})
    	}
    	if len(m.pskIdentities) > 0 { // pre_shared_key must be the last extension
    		// RFC 8446, Section 4.2.11
    		exts.AddUint16(extensionPreSharedKey)
    		exts.AddUint16LengthPrefixed(func(exts *cryptobyte.Builder) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_server_tls13.go

    	}
    
    	if hs.clientHello.earlyData && c.quic != nil {
    		if len(hs.clientHello.pskIdentities) == 0 {
    			c.sendAlert(alertIllegalParameter)
    			return errors.New("tls: early_data without pre_shared_key")
    		}
    	} else if hs.clientHello.earlyData {
    		// See RFC 8446, Section 4.2.10 for the complicated behavior required
    		// here. The scenario is that a different server at our address offered
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_client.go

    			for _, alpn := range hello.alpnProtocols {
    				if alpn == session.alpnProtocol {
    					hello.earlyData = true
    					break
    				}
    			}
    		}
    	}
    
    	// Set the pre_shared_key extension. See RFC 8446, Section 4.2.11.1.
    	ticketAge := c.config.time().Sub(time.Unix(int64(session.createdAt), 0))
    	identity := pskIdentity{
    		label:               session.ticket,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 38.6K bytes
    - Viewed (0)
Back to top