Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CipherSuiteByID (0.21 sec)

  1. src/crypto/tls/prf_test.go

    		}
    	}
    }
    
    // These test vectors were generated from GnuTLS using `gnutls-cli --insecure -d 9 `
    var testKeysFromTests = []testKeysFromTest{
    	{
    		VersionTLS10,
    		cipherSuiteByID(TLS_RSA_WITH_RC4_128_SHA),
    		"0302cac83ad4b1db3b9ab49ad05957de2a504a634a386fc600889321e1a971f57479466830ac3e6f468e87f5385fa0c5",
    		"4ae66303755184a3917fcb44880605fcc53baa01912b22ed94473fc69cebd558",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 27 22:24:05 UTC 2019
    - 5.7K bytes
    - Viewed (0)
  2. src/crypto/tls/cipher_suites.go

    // ciphersuites and the id requested by the peer.
    func mutualCipherSuite(have []uint16, want uint16) *cipherSuite {
    	for _, id := range have {
    		if id == want {
    			return cipherSuiteByID(id)
    		}
    	}
    	return nil
    }
    
    func cipherSuiteByID(id uint16) *cipherSuite {
    	for _, cipherSuite := range cipherSuites {
    		if cipherSuite.id == id {
    			return cipherSuite
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. src/crypto/tls/tls_test.go

    		}
    	}
    
    	CipherSuiteByID := func(id uint16) *CipherSuite {
    		for _, c := range CipherSuites() {
    			if c.ID == id {
    				return c
    			}
    		}
    		for _, c := range InsecureCipherSuites() {
    			if c.ID == id {
    				return c
    			}
    		}
    		return nil
    	}
    
    	for _, c := range cipherSuites {
    		cc := CipherSuiteByID(c.id)
    		if cc == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
Back to top