- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,851 for sig1 (0.07 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/crypto/internal/boring/sig/sig.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package sig holds “code signatures” that can be called // and will result in certain code sequences being linked into // the final binary. The functions themselves are no-ops. package sig // BoringCrypto indicates that the BoringCrypto module is present. func BoringCrypto()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 15:58:43 UTC 2017 - 614 bytes - Viewed (0) -
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) -
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)