Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for parseECHConfigList (0.19 sec)

  1. src/crypto/tls/ech_test.go

    	} {
    		b, err := hex.DecodeString(tc.list)
    		if err != nil {
    			t.Fatal(err)
    		}
    		configs, err := parseECHConfigList(b)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(configs) != tc.numConfigs {
    			t.Fatalf("unexpected number of configs parsed: got %d want %d", len(configs), tc.numConfigs)
    		}
    	}
    
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/crypto/tls/ech.go

    	Extensions    []echExtension
    }
    
    var errMalformedECHConfig = errors.New("tls: malformed ECHConfigList")
    
    // parseECHConfigList parses a draft-ietf-tls-esni-18 ECHConfigList, returning a
    // slice of parsed ECHConfigs, in the same order they were parsed, or an error
    // if the list is malformed.
    func parseECHConfigList(data []byte) ([]echConfig, error) {
    	s := cryptobyte.String(data)
    	// Skip the length prefix
    	var length uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_client.go

    		if c.config.MaxVersion != 0 && c.config.MaxVersion <= VersionTLS12 {
    			return nil, nil, nil, errors.New("tls: MaxVersion must be >= VersionTLS13 if EncryptedClientHelloConfigList is populated")
    		}
    		echConfigs, err := parseECHConfigList(c.config.EncryptedClientHelloConfigList)
    		if err != nil {
    			return nil, nil, nil, err
    		}
    		echConfig := pickECHConfig(echConfigs)
    		if echConfig == nil {
    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