Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 202 for publicKey (0.14 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/verifier/SignatureVerificationFailure.java

            PGPPublicKey publicKey = error.publicKey;
            switch (error.kind) {
                case PASSED_NOT_TRUSTED:
                    appendKeyDetails(sb, publicKey);
                    sb.append("and passed verification but the key isn't in your trusted keys list.");
                    break;
                case FAILED:
                    appendKeyDetails(sb, publicKey);
                    sb.append("but signature didn't match");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/crypto/ecdh/ecdh_test.go

    	"regexp"
    	"strings"
    	"testing"
    
    	"golang.org/x/crypto/chacha20"
    )
    
    // Check that PublicKey and PrivateKey implement the interfaces documented in
    // crypto.PublicKey and crypto.PrivateKey.
    var _ interface {
    	Equal(x crypto.PublicKey) bool
    } = &ecdh.PublicKey{}
    var _ interface {
    	Public() crypto.PublicKey
    	Equal(x crypto.PrivateKey) bool
    } = &ecdh.PrivateKey{}
    
    func TestECDH(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. src/crypto/ecdh/nist.go

    func (c *nistCurve[Point]) NewPublicKey(key []byte) (*PublicKey, error) {
    	// Reject the point at infinity and compressed encodings.
    	if len(key) == 0 || key[0] != 4 {
    		return nil, errors.New("crypto/ecdh: invalid public key")
    	}
    	k := &PublicKey{
    		curve:     c,
    		publicKey: append([]byte{}, key...),
    	}
    	if boring.Enabled {
    		bk, err := boring.NewPublicKeyECDH(c.name, k.publicKey)
    		if err != nil {
    			return nil, err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/crypto/rsa/rsa_test.go

    	if err == nil {
    		err = VerifyPKCS1v15(&priv.PublicKey, crypto.SHA256, hash[:], sig)
    		if err != nil {
    			t.Errorf("VerifyPKCS1v15: %v", err)
    		}
    		sig[1] ^= 0x80
    		err = VerifyPKCS1v15(&priv.PublicKey, crypto.SHA256, hash[:], sig)
    		if err == nil {
    			t.Errorf("VerifyPKCS1v15 success for tampered signature")
    		}
    		sig[1] ^= 0x80
    		hash[1] ^= 0x80
    		err = VerifyPKCS1v15(&priv.PublicKey, crypto.SHA256, hash[:], sig)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:55:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  5. src/crypto/ecdsa/ecdsa.go

    func (priv *PrivateKey) Public() crypto.PublicKey {
    	return &priv.PublicKey
    }
    
    // Equal reports whether priv and x have the same value.
    //
    // See [PublicKey.Equal] for details on how Curve is compared.
    func (priv *PrivateKey) Equal(x crypto.PrivateKey) bool {
    	xx, ok := x.(*PrivateKey)
    	if !ok {
    		return false
    	}
    	return priv.PublicKey.Equal(&xx.PublicKey) && bigIntEqual(priv.D, xx.D)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. platforms/software/security/src/main/java/org/gradle/security/internal/PublicKeyDownloadService.java

         */
        private void findMatchingKey(long id, PGPPublicKeyRing keyRing, PublicKeyResultBuilder builder) {
            for (PGPPublicKey publicKey : keyRing) {
                if (publicKey.getKeyID() == id) {
                    builder.publicKey(publicKey);
                    return;
                }
            }
        }
    
        /**
         * A response was sent from the server. This is a keyring, we need to find
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. src/crypto/x509/boring.go

    		return true
    	}
    
    	// The key must be RSA 2048, RSA 3072, RSA 4096,
    	// or ECDSA P-256, P-384, P-521.
    	switch k := c.PublicKey.(type) {
    	default:
    		return false
    	case *rsa.PublicKey:
    		if size := k.N.BitLen(); size != 2048 && size != 3072 && size != 4096 {
    			return false
    		}
    	case *ecdsa.PublicKey:
    		if k.Curve != elliptic.P256() && k.Curve != elliptic.P384() && k.Curve != elliptic.P521() {
    			return false
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 993 bytes
    - Viewed (0)
  8. platforms/software/security/src/main/java/org/gradle/security/internal/PublicKeyServiceChain.java

            public void keyRing(PGPPublicKeyRing keyring) {
                delegate.keyRing(keyring);
                hasResult = true;
            }
    
            @Override
            public void publicKey(PGPPublicKey publicKey) {
                delegate.publicKey(publicKey);
                hasResult = true;
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. src/crypto/rsa/rsa.go

    // PrivateKey, as the latter embeds the former and will expose its methods.
    
    // Size returns the modulus size in bytes. Raw signatures and ciphertexts
    // for or by this public key will have the same size.
    func (pub *PublicKey) Size() int {
    	return (pub.N.BitLen() + 7) / 8
    }
    
    // Equal reports whether pub and x have the same value.
    func (pub *PublicKey) Equal(x crypto.PublicKey) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. src/crypto/x509/x509.go

    // ParsePKIXPublicKey parses a public key in PKIX, ASN.1 DER form. The encoded
    // public key is a SubjectPublicKeyInfo structure (see RFC 5280, Section 4.1).
    //
    // It returns a *[rsa.PublicKey], *[dsa.PublicKey], *[ecdsa.PublicKey],
    // [ed25519.PublicKey] (not a pointer), or *[ecdh.PublicKey] (for X25519).
    // More types might be supported in the future.
    //
    // This kind of key is commonly encoded in PEM blocks of type "PUBLIC KEY".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
Back to top