Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 651 for sig1 (0.09 sec)

  1. cmd/signature-v2.go

    // according to the AWS S3 signature V2 spec.
    func compareSignatureV2(sig1, sig2 string) bool {
    	// Decode signature string to binary byte-sequence representation is required
    	// as Base64 encoding of a value is not unique:
    	// For example "aGVsbG8=" and "aGVsbG8=\r" will result in the same byte slice.
    	signature1, err := base64.StdEncoding.DecodeString(sig1)
    	if err != nil {
    		return false
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. cmd/signature-v4.go

    // according to the AWS S3 signature V4 spec.
    func compareSignatureV4(sig1, sig2 string) bool {
    	// The CTC using []byte(str) works because the hex encoding
    	// is unique for a sequence of bytes. See also compareSignatureV2.
    	return subtle.ConstantTimeCompare([]byte(sig1), []byte(sig2)) == 1
    }
    
    // doesPolicySignatureMatch - Verify query headers with post policy
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		t.Errorf("error.Sys (%v) has type %T; expected syscall.WaitStatus", ee.Sys(), ee.Sys())
    	} else if !ws.Signaled() || (ws.Signal() != sig1 && ws.Signal() != sig2) {
    		if sig2 == 0 {
    			t.Errorf("got %q; expected signal %q", ee, sig1)
    		} else {
    			t.Errorf("got %q; expected signal %q or %q", ee, sig1, sig2)
    		}
    	} else {
    		return true
    	}
    	return false
    }
    
    func TestOsSignal(t *testing.T) {
    	switch GOOS {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  4. platforms/software/signing/src/main/java/org/gradle/plugins/signing/Sign.java

        }
    
        /**
         * Configures the task to sign each of the given files
         */
        public void sign(File... files) {
            addSignatures(null, files);
        }
    
        /**
         * Configures the task to sign each of the given artifacts, using the given classifier as the classifier for the resultant signature publish artifact.
         */
        public void sign(String classifier, File... files) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/sumdb/note/note.go

    			return nil, errInvalidSigner
    		}
    
    		sig, err := s.Sign(buf.Bytes()) // buf holds n.Text
    		if err != nil {
    			return nil, err
    		}
    
    		var hbuf [4]byte
    		binary.BigEndian.PutUint32(hbuf[:], hash)
    		b64 := base64.StdEncoding.EncodeToString(append(hbuf[:], sig...))
    		sigs.WriteString("— ")
    		sigs.WriteString(name)
    		sigs.WriteString(" ")
    		sigs.WriteString(b64)
    		sigs.WriteString("\n")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  6. src/crypto/ed25519/ed25519_test.go

    		var priv [PrivateKeySize]byte
    		copy(priv[:], privBytes)
    		copy(priv[32:], pubKey)
    
    		sig2 := Sign(priv[:], msg)
    		if !bytes.Equal(sig, sig2[:]) {
    			t.Errorf("different signature result on line %d: %x vs %x", lineNo, sig, sig2)
    		}
    
    		if !Verify(pubKey, msg, sig2) {
    			t.Errorf("signature failed to verify on line %d", lineNo)
    		}
    
    		priv2 := NewKeyFromSeed(priv[:32])
    		if !bytes.Equal(priv[:], priv2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/crypto/ed25519/ed25519.go

    	copy(privateKey[32:], publicKey)
    }
    
    // Sign signs the message with privateKey and returns a signature. It will
    // panic if len(privateKey) is not [PrivateKeySize].
    func Sign(privateKey PrivateKey, message []byte) []byte {
    	// Outline the function body so that the returned signature can be
    	// stack-allocated.
    	signature := make([]byte, SignatureSize)
    	sign(signature, privateKey, message, domPrefixPure, "")
    	return signature
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. platforms/software/signing/src/main/java/org/gradle/plugins/signing/SigningExtension.java

            addSignaturesToConfiguration(signTask, getConfiguration());
            return signTask;
        }
    
        protected Object addSignaturesToConfiguration(Sign task, final Configuration configuration) {
            task.getSignatures().all(sig -> configuration.getArtifacts().add(sig));
            return task.getSignatures().whenObjectRemoved(sig -> configuration.getArtifacts().remove(sig));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  9. src/crypto/ecdsa/ecdsa_test.go

    	priv, _ := GenerateKey(c, rand.Reader)
    
    	hashed := []byte("testing")
    	sig, err := SignASN1(rand.Reader, priv, hashed)
    	if err != nil {
    		t.Errorf("error signing: %s", err)
    		return
    	}
    
    	if !VerifyASN1(&priv.PublicKey, hashed, sig) {
    		t.Errorf("VerifyASN1 failed")
    	}
    
    	hashed[0] ^= 0xff
    	if VerifyASN1(&priv.PublicKey, hashed, sig) {
    		t.Errorf("VerifyASN1 always works!")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:58 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. src/crypto/tls/key_agreement.go

    		return errServerKeyExchange
    	}
    
    	sigLen := int(sig[0])<<8 | int(sig[1])
    	if sigLen+2 != len(sig) {
    		return errServerKeyExchange
    	}
    	sig = sig[2:]
    
    	signed := hashForServerKeyExchange(sigType, sigHash, ka.version, clientHello.random, serverHello.random, serverECDHEParams)
    	if err := verifyHandshakeSignature(sigType, cert.PublicKey, sigHash, signed, sig); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top