- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 113 for StdEncoding (0.2 sec)
-
staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go
} return x509.ParseCertificate(block.Bytes) } block = nextBlock } } func x509CertSignature(cert *x509.Certificate) string { return base64.StdEncoding.EncodeToString(cert.Signature) } func certFileSignature(certFile, keyFile string) (string, error) { cert, err := tls.LoadX509KeyPair(certFile, keyFile) if err != nil { return "", err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 15:52:39 UTC 2024 - 13.8K bytes - Viewed (0) -
cmd/batch-rotate.go
if e.Type == ssekms && spaces { return crypto.ErrInvalidEncryptionKeyID } if e.Type == ssekms && GlobalKMS != nil { ctx := kms.Context{} if e.Context != "" { b, err := base64.StdEncoding.DecodeString(e.Context) if err != nil { return err } json := jsoniter.ConfigCompatibleWithStandardLibrary if err := json.Unmarshal(b, &ctx); err != nil { return err } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 14.3K bytes - Viewed (0) -
cmd/post-policy_test.go
expirationTime := UTCNow().Add(time.Minute * 5) // Create a new post policy. policy := newPostPolicyBytesV2(bucketName, objectName, expirationTime) // Only need the encoding. encodedPolicy := base64.StdEncoding.EncodeToString(policy) // Presign with V4 signature based on the policy. signature := calculateSignatureV2(encodedPolicy, secretKey) formData := map[string]string{ "bucket": bucketName,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 30.2K bytes - Viewed (0) -
src/cmd/compile/internal/staticdata/data.go
) // shortHashString converts the hash to a string for use with stringSymPattern. // We cut it to 16 bytes and then base64-encode to make it even smaller. func shortHashString(hash []byte) string { return base64.StdEncoding.EncodeToString(hash[:16]) } // StringSym returns a symbol containing the string s. // The symbol contains the string data, not a string header. func StringSym(pos src.XPos, s string) (data *obj.LSym) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:08:50 UTC 2023 - 10.3K bytes - Viewed (0) -
pkg/volume/util/atomic_writer_test.go
AAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAfQAAAAAAAAB9AAAAAAAAAAAA IAAAAAAAsDyZDwU=` mysteryBinaryBytes := make([]byte, base64.StdEncoding.DecodedLen(len(encodedMysteryBinary))) numBytes, err := base64.StdEncoding.Decode(mysteryBinaryBytes, []byte(encodedMysteryBinary)) if err != nil { t.Fatalf("Unexpected error decoding binary payload: %v", err) } if numBytes != 125 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 30.5K bytes - Viewed (0) -
cmd/api-response.go
data.Delimiter = s3EncodeName(delimiter, encodingType) data.Prefix = s3EncodeName(prefix, encodingType) data.MaxKeys = maxKeys data.ContinuationToken = base64.StdEncoding.EncodeToString([]byte(token)) data.NextContinuationToken = base64.StdEncoding.EncodeToString([]byte(nextToken)) data.IsTruncated = isTruncated commonPrefixes := make([]CommonPrefix, 0, len(prefixes)) for _, prefix := range prefixes {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 33.5K bytes - Viewed (0) -
src/cmd/go/internal/cache/prog.go
} if err := c.bw.WriteByte('\n'); err != nil { return err } if req.Body != nil && req.BodySize > 0 { if err := c.bw.WriteByte('"'); err != nil { return err } e := base64.NewEncoder(base64.StdEncoding, c.bw) wrote, err := io.Copy(e, req.Body) if err != nil { return err } if err := e.Close(); err != nil { return nil } if wrote != req.BodySize {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 14 19:23:25 UTC 2023 - 11.8K bytes - Viewed (0) -
src/net/smtp/smtp.go
// Only servers that advertise the AUTH extension support this function. func (c *Client) Auth(a Auth) error { if err := c.hello(); err != nil { return err } encoding := base64.StdEncoding mech, resp, err := a.Start(&ServerInfo{c.serverName, c.tls, c.auth}) if err != nil { c.Quit() return err } resp64 := make([]byte, encoding.EncodedLen(len(resp))) encoding.Encode(resp64, resp)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 11.6K bytes - Viewed (0) -
cmd/bucket-handlers.go
Claims: cred.Claims, }) { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrAccessDenied), r.URL) return } } policyBytes, err := base64.StdEncoding.DecodeString(formValues.Get("Policy")) if err != nil { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedPOSTRequest), r.URL) return }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 14 13:28:35 UTC 2024 - 61.2K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/git.go
h := sha256.New() for _, tag := range tags.List { if isOriginTag(strings.TrimPrefix(tag.Name, dir)) { fmt.Fprintf(h, "%q %s\n", tag.Name, tag.Hash) } } tags.Origin.TagSum = "t1:" + base64.StdEncoding.EncodeToString(h.Sum(nil)) return tags, nil } // repoSum returns a checksum of the entire repo state, // which can be checked (as Origin.RepoSum) to cache // the absence of a specific module version.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 22:10:38 UTC 2024 - 27.4K bytes - Viewed (0)