Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 409 for sig1 (0.24 sec)

  1. 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)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

            'sig1': os.path.join(self._input_saved_model_path, 'sig1_repr'),
            'sig2': os.path.join(self._input_saved_model_path, 'sig2_repr'),
        }).save({
            'sig1': data_gen_sig1(),
            'sig2': data_gen_sig2(),
        })
        tags = {tag_constants.SERVING}
        quantization_options = quant_opts_pb2.QuantizationOptions(
            quantization_method=quant_opts_pb2.QuantizationMethod(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api_test.go

    		// in Identical() or String().
    		sig, _ := sel.Type().(*Signature)
    		if sel.Kind() == MethodVal {
    			got := sig.Recv().Type()
    			want := sel.Recv()
    			if !Identical(got, want) {
    				t.Errorf("%s: Recv() = %s, want %s", segment, got, want)
    			}
    		} else if sig != nil && sig.Recv() != nil {
    			t.Errorf("%s: signature has receiver %s", sig, sig.Recv().Type())
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  4. src/go/types/api_test.go

    		// in Identical() or String().
    		sig, _ := sel.Type().(*Signature)
    		if sel.Kind() == MethodVal {
    			got := sig.Recv().Type()
    			want := sel.Recv()
    			if !Identical(got, want) {
    				t.Errorf("%s: Recv() = %s, want %s", syntax, got, want)
    			}
    		} else if sig != nil && sig.Recv() != nil {
    			t.Errorf("%s: signature has receiver %s", sig, sig.Recv().Type())
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  5. src/crypto/ecdsa/ecdsa_legacy.go

    func Verify(pub *PublicKey, hash []byte, r, s *big.Int) bool {
    	if r.Sign() <= 0 || s.Sign() <= 0 {
    		return false
    	}
    	sig, err := encodeSignature(r.Bytes(), s.Bytes())
    	if err != nil {
    		return false
    	}
    	return VerifyASN1(pub, hash, sig)
    }
    
    func verifyLegacy(pub *PublicKey, hash []byte, sig []byte) bool {
    	rBytes, sBytes, err := parseSignature(sig)
    	if err != nil {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. 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)
  7. pkg/controller/bootstrap/bootstrapsigner.go

    		sig, err := jws.ComputeDetachedSignature(content, tokenID, tokenValue)
    		if err != nil {
    			utilruntime.HandleError(err)
    		}
    
    		// Check to see if this signature is changed or new.
    		oldSig, _ := sigs[tokenID]
    		if sig != oldSig {
    			needUpdate = true
    		}
    		delete(sigs, tokenID)
    
    		newCM.Data[bootstrapapi.JWSSignatureKeyPrefix+tokenID] = sig
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. staging/README.md

        Add the staging repo in the list of repos to be published.
    
    4. Add the staging and published repositories as a subproject for the
    SIG that owns the repos in
    [`sigs.yaml`](https://github.com/kubernetes/community/blob/master/sigs.yaml).
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 11:23:09 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/crypto/rsa/pss_test.go

    func TestPSSOpenSSL(t *testing.T) {
    	hash := crypto.SHA256
    	h := hash.New()
    	h.Write([]byte("testing"))
    	hashed := h.Sum(nil)
    
    	// Generated with `echo -n testing | openssl dgst -sign key.pem -sigopt rsa_padding_mode:pss -sha256 > sig`
    	sig := []byte{
    		0x95, 0x59, 0x6f, 0xd3, 0x10, 0xa2, 0xe7, 0xa2, 0x92, 0x9d,
    		0x4a, 0x07, 0x2e, 0x2b, 0x27, 0xcc, 0x06, 0xc2, 0x87, 0x2c,
    		0x52, 0xf0, 0x4a, 0xcc, 0x05, 0x94, 0xf2, 0xc3, 0x2e, 0x20,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 8.8K 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