Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 415 for publicKey (0.11 sec)

  1. src/crypto/tls/handshake_client_tls13.go

    		if err != nil {
    			c.sendAlert(alertInternalError)
    			return err
    		}
    		hs.keyShareKeys = &keySharePrivateKeys{curveID: curveID, ecdhe: key}
    		hello.keyShares = []keyShare{{group: curveID, data: key.PublicKey().Bytes()}}
    	}
    
    	if len(hello.pskIdentities) > 0 {
    		pskSuite := cipherSuiteTLS13ByID(hs.session.cipherSuite)
    		if pskSuite == nil {
    			return c.sendAlert(alertInternalError)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go

    	template.IPAddresses = append(template.IPAddresses, alternateIPs...)
    	template.DNSNames = append(template.DNSNames, alternateDNS...)
    
    	derBytes, err := x509.CreateCertificate(cryptorand.Reader, &template, &template, &priv.PublicKey, priv)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	// Generate cert
    	certBuffer := bytes.Buffer{}
    	if err := pem.Encode(&certBuffer, &pem.Block{Type: "CERTIFICATE", Bytes: derBytes}); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 15:52:39 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. src/crypto/rsa/pss.go

    // ignored.
    //
    // The inputs are not considered confidential, and may leak through timing side
    // channels, or if an attacker has control of part of the inputs.
    func VerifyPSS(pub *PublicKey, hash crypto.Hash, digest []byte, sig []byte, opts *PSSOptions) error {
    	if boring.Enabled {
    		bkey, err := boringPublicKey(pub)
    		if err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_client_test.go

    	clientWCC := &writeCountingConn{Conn: c}
    	serverWCC := &writeCountingConn{Conn: s}
    
    	serverConfig := testConfig.Clone()
    
    	// Cause a signature-time error
    	brokenKey := rsa.PrivateKey{PublicKey: testRSAPrivateKey.PublicKey}
    	brokenKey.D = big.NewInt(42)
    	serverConfig.Certificates = []Certificate{{
    		Certificate: [][]byte{testRSACertificate},
    		PrivateKey:  &brokenKey,
    	}}
    
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  5. api/go1.10.txt

    pkg crypto/x509, const UnconstrainedName = 7
    pkg crypto/x509, const UnconstrainedName InvalidReason
    pkg crypto/x509, func MarshalPKCS1PublicKey(*rsa.PublicKey) []uint8
    pkg crypto/x509, func MarshalPKCS8PrivateKey(interface{}) ([]uint8, error)
    pkg crypto/x509, func ParsePKCS1PublicKey([]uint8) (*rsa.PublicKey, error)
    pkg crypto/x509, method (PublicKeyAlgorithm) String() string
    pkg crypto/x509, type Certificate struct, ExcludedEmailAddresses []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 06 05:00:01 UTC 2018
    - 30.1K bytes
    - Viewed (0)
  6. src/crypto/tls/handshake_server_test.go

    		supportedVersions:  []uint16{VersionTLS13},
    		cipherSuites:       []uint16{TLS_CHACHA20_POLY1305_SHA256},
    		compressionMethods: []uint8{compressionNone},
    		keyShares:          []keyShare{{group: X25519, data: pk.PublicKey().Bytes()}},
    		supportedCurves:    []CurveID{CurveP256},
    	}
    	testClientHelloFailure(t, testConfig, clientHello, "client sent key share for group it does not support")
    }
    
    func TestHandshakeServerALPN(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  7. cmd/test-utils_test.go

    	rsaBits := 2048
    
    	if len(host) == 0 {
    		return nil, nil, fmt.Errorf("Missing host parameter")
    	}
    
    	publicKey := func(priv interface{}) interface{} {
    		switch k := priv.(type) {
    		case *rsa.PrivateKey:
    			return &k.PublicKey
    		case *ecdsa.PrivateKey:
    			return &k.PublicKey
    		default:
    			return nil
    		}
    	}
    
    	pemBlockForKey := func(priv interface{}) *pem.Block {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/serving.go

    	// load main cert *original description until 2023-08-18*
    
    	/*
    		kubernetes mutual (2-way) x509 between client and apiserver:
    
    			>1. apiserver sending its apiserver certificate along with its publickey to client
    			2. client verifies the apiserver certificate sent against its cluster certificate authority data
    			3. client sending its client certificate along with its public key to the apiserver
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 13:08:18 UTC 2024
    - 15.9K bytes
    - Viewed (1)
  9. src/crypto/x509/name_constraints_test.go

    		return nil, err
    	}
    
    	if parent == nil {
    		parent = template
    	}
    	derBytes, err := CreateCertificate(rand.Reader, template, parent, &key.PublicKey, parentKey)
    	if err != nil {
    		return nil, err
    	}
    
    	caCert, err := ParseCertificate(derBytes)
    	if err != nil {
    		return nil, err
    	}
    
    	return caCert, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 22:40:21 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  10. security/pkg/pki/ca/ca.go

    		return nil, caerror.NewError(caerror.TTLError, fmt.Errorf(
    			"requested TTL %s is greater than the max allowed TTL %s", requestedLifetime, ca.maxCertTTL))
    	}
    
    	certBytes, err := util.GenCertFromCSR(csr, signingCert, csr.PublicKey, *signingKey, subjectIDs, lifetime, forCA)
    	if err != nil {
    		return nil, caerror.NewError(caerror.CertGenError, err)
    	}
    
    	block := &pem.Block{
    		Type:  "CERTIFICATE",
    		Bytes: certBytes,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 17.2K bytes
    - Viewed (0)
Back to top