Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 202 for publicKey (0.25 sec)

  1. platforms/software/security/src/testFixtures/groovy/org/gradle/security/fixtures/SimpleKeyRing.groovy

    import org.gradle.plugins.signing.type.pgp.ArmoredSignatureType
    
    @CompileStatic
    @Canonical
    class SimpleKeyRing {
        final String name
        final PGPSecretKey secretKey
        final PGPPublicKey publicKey
        final String password
    
        void writePublicKeyRingTo(File file) {
            def asciiArmored = file.name.endsWith(".keys")
            file.newOutputStream().withCloseable {stream ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. cmd/sftp-server.go

    }
    
    func sshPubKeyAuth(c ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) {
    	return authenticateSSHConnection(c, key, nil)
    }
    
    func sshPasswordAuth(c ssh.ConnMetadata, pass []byte) (*ssh.Permissions, error) {
    	return authenticateSSHConnection(c, nil, pass)
    }
    
    func authenticateSSHConnection(c ssh.ConnMetadata, key ssh.PublicKey, pass []byte) (*ssh.Permissions, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

        /**
         * Sets the public/private key pair used for this certificate. If unset a key pair will be
         * generated.
         */
        fun keyPair(
          publicKey: PublicKey,
          privateKey: PrivateKey,
        ) = apply {
          keyPair(KeyPair(publicKey, privateKey))
        }
    
        /**
         * Set the certificate that will issue this certificate. If unset the certificate will be
         * self-signed.
         */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/writer/WriteDependencyVerificationFile.java

            Set<String> publicKeys,
            @Nullable DependencyVerificationConfiguration.KeyringFormat keyringFormat
        ) throws IOException {
            List<PGPPublicKeyRing> existingRings = loadExistingKeyRing(existingKeyring);
            PGPPublicKeyRingListBuilder builder = new PGPPublicKeyRingListBuilder();
            for (String publicKey : publicKeys) {
                if (publicKey.length() <= 16) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. src/crypto/x509/boring_test.go

    	} else {
    		pcert = tmpl
    		pkey = key
    	}
    
    	var pub interface{}
    	var desc string
    	switch k := key.(type) {
    	case *rsa.PrivateKey:
    		pub = &k.PublicKey
    		desc = fmt.Sprintf("RSA-%d", k.N.BitLen())
    	case *ecdsa.PrivateKey:
    		pub = &k.PublicKey
    		desc = "ECDSA-" + k.Curve.Params().Name
    	default:
    		t.Fatalf("invalid key %T", key)
    	}
    
    	der, err := CreateCertificate(rand.Reader, tmpl, pcert, pub, pkey)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 17:38:47 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/verification/DependencyVerificationSignatureCheckIntegTest.groovy

        def "can verify classified artifacts downloaded in previous builds (stop in between = #stopInBetween)"() {
            def keyring = newKeyRing()
            keyServerFixture.registerPublicKey(keyring.publicKey)
            def pkId = Fingerprint.of(keyring.publicKey)
    
            given:
            terseConsoleOutput(false)
            javaLibrary()
            uncheckedModule("org", "foo", "1.0") {
                artifact(classifier: 'classy')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 75.1K bytes
    - Viewed (0)
  7. src/crypto/rsa/pkcs1v15.go

    	em, err := pkcs1v15ConstructEM(&priv.PublicKey, hash, hashed)
    	if err != nil {
    		return nil, err
    	}
    
    	if boring.Enabled {
    		bkey, err := boringPrivateKey(priv)
    		if err != nil {
    			return nil, err
    		}
    		return boring.SignRSAPKCS1v15(bkey, hash, hashed)
    	}
    
    	return decrypt(priv, em, withCheck)
    }
    
    func pkcs1v15ConstructEM(pub *PublicKey, hash crypto.Hash, hashed []byte) ([]byte, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. pkg/serviceaccount/jwt.go

    // accidentally obtain the real key from the key ID and use it for token
    // validation.
    func keyIDFromPublicKey(publicKey interface{}) (string, error) {
    	publicKeyDERBytes, err := x509.MarshalPKIXPublicKey(publicKey)
    	if err != nil {
    		return "", fmt.Errorf("failed to serialize public key to DER format: %v", err)
    	}
    
    	hasher := crypto.SHA256.New()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 22:16:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. src/crypto/tls/tls.go

    		return fail(err)
    	}
    
    	switch pub := x509Cert.PublicKey.(type) {
    	case *rsa.PublicKey:
    		priv, ok := cert.PrivateKey.(*rsa.PrivateKey)
    		if !ok {
    			return fail(errors.New("tls: private key type does not match public key type"))
    		}
    		if pub.N.Cmp(priv.N) != 0 {
    			return fail(errors.New("tls: private key does not match public key"))
    		}
    	case *ecdsa.PublicKey:
    		priv, ok := cert.PrivateKey.(*ecdsa.PrivateKey)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/crypto/dsa/dsa.go

    // be shared across many keys. The bit length of Q must be a multiple of 8.
    type Parameters struct {
    	P, Q, G *big.Int
    }
    
    // PublicKey represents a DSA public key.
    type PublicKey struct {
    	Parameters
    	Y *big.Int
    }
    
    // PrivateKey represents a DSA private key.
    type PrivateKey struct {
    	PublicKey
    	X *big.Int
    }
    
    // ErrInvalidPublicKey results when a public key is not usable by this code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top