- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for Sum256 (0.18 sec)
-
internal/hash/sha256/sh256.go
package sha256 import ( "crypto/sha256" "hash" ) // New initializes a new sha256.New() func New() hash.Hash { return sha256.New() } // Sum256 returns the SHA256 checksum of the data. func Sum256(data []byte) [sha256.Size]byte { return sha256.Sum256(data) } // Size is the size of a SHA256 checksum in bytes.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Apr 26 06:31:35 UTC 2024 - 1.1K bytes - Viewed (0) -
cmd/signature-v4-utils.go
if stype == serviceSTS { payload, err := io.ReadAll(io.LimitReader(r.Body, stsRequestBodyLimit)) if err != nil { logger.CriticalIf(GlobalContext, err) } sum256 := sha256.Sum256(payload) r.Body = io.NopCloser(bytes.NewReader(payload)) return hex.EncodeToString(sum256[:]) } var ( defaultSha256Cksum string v []string ok bool )Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Nov 25 17:10:22 UTC 2024 - 9.1K bytes - Viewed (0) -
cmd/object-lambda-handlers.go
} extraHeaders := http.Header{} u, err := clnt.PresignHeader(r.Context(), http.MethodGet, bucket, object, duration, reqParams, extraHeaders) if err != nil { return levent.Event{}, err } ckSum := sha256.Sum256([]byte(cred.AccessKey + u.RawQuery)) eventData := levent.Event{ GetObjectContext: &levent.GetObjectContext{ InputS3URL: u.String(), OutputRoute: shortuuid.New(), OutputToken: hex.EncodeToString(ckSum[:]),Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Jul 18 21:56:31 UTC 2025 - 6.5K bytes - Viewed (0) -
cmd/object-lambda-handlers_test.go
req.Form = url.Values{"lambdaArn": []string{lambdaARN}} req.Header.Set("Host", "localhost") req.Header.Set("X-Amz-Date", time.Now().UTC().Format("20060102T150405Z")) sum := sha256.Sum256(body) req.Header.Set("X-Amz-Content-Sha256", hex.EncodeToString(sum[:])) req = signer.SignV4(*req, credentials.AccessKey, credentials.SecretKey, "", "us-east-1") rec := httptest.NewRecorder()Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Jul 18 21:56:31 UTC 2025 - 5.2K bytes - Viewed (0) -
cmd/signature-v4.go
func getStringToSign(canonicalRequest string, t time.Time, scope string) string { stringToSign := signV4Algorithm + "\n" + t.Format(iso8601Format) + "\n" stringToSign += scope + "\n" canonicalRequestBytes := sha256.Sum256([]byte(canonicalRequest)) stringToSign += hex.EncodeToString(canonicalRequestBytes[:]) return stringToSign } // getSigningKey hmac seed to calculate final signature.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Dec 13 22:19:12 UTC 2024 - 12.4K bytes - Viewed (0) -
api/go1.24.txt
pkg crypto/sha3, func NewSHAKE128() *SHAKE #69982 pkg crypto/sha3, func NewSHAKE256() *SHAKE #69982 pkg crypto/sha3, func Sum224([]uint8) [28]uint8 #69982 pkg crypto/sha3, func Sum256([]uint8) [32]uint8 #69982 pkg crypto/sha3, func Sum384([]uint8) [48]uint8 #69982 pkg crypto/sha3, func Sum512([]uint8) [64]uint8 #69982 pkg crypto/sha3, func SumSHAKE128([]uint8, int) []uint8 #69982
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Dec 17 21:28:29 UTC 2024 - 14.2K bytes - Viewed (0) -
cmd/object-multipart-handlers.go
if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } copy(objectEncryptionKey[:], key) var nonce [12]byte tmp := sha256.Sum256(fmt.Append(nil, uploadID, partID)) copy(nonce[:], tmp[:12]) partEncryptionKey := objectEncryptionKey.DerivePartKey(uint32(partID)) encReader, err := sio.EncryptReader(reader, sio.Config{Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 07 16:13:09 UTC 2025 - 39.5K bytes - Viewed (1) -
cmd/server-main.go
} globalLocalNodeName = GetLocalPeer(globalEndpoints, globalMinioHost, globalMinioPort) nodeNameSum := sha256.Sum256([]byte(globalLocalNodeName)) globalLocalNodeNameHex = hex.EncodeToString(nodeNameSum[:]) // Initialize, see which NIC the service is running on, and save it as global value setGlobalInternodeInterface(ctxt.Interface)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue May 27 15:18:36 UTC 2025 - 35.9K bytes - Viewed (4) -
internal/grid/handlers.go
// If == 0 no input is expected InCapacity int } ) type subHandlerID [32]byte func makeSubHandlerID(id HandlerID, subRoute string) subHandlerID { b := subHandlerID(sha256.Sum256([]byte(subRoute))) b[0] = byte(id) b[1] = 0 // Reserved return b } func (s subHandlerID) withHandler(id HandlerID) subHandlerID { s[0] = byte(id) s[1] = 0 // Reserved return s }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 27.7K bytes - Viewed (0) -
cmd/admin-handlers-users_test.go
} buf, err = madmin.EncryptData(secretKey, buf) if err != nil { c.Fatalf("unexpected encryption err: %v", err) } req.ContentLength = int64(len(buf)) sum := sha256.Sum256(buf) req.Header.Set("X-Amz-Content-Sha256", hex.EncodeToString(sum[:])) req.Body = io.NopCloser(bytes.NewReader(buf)) req = signer.SignV4(*req, accessKey, secretKey, "", "") // 3.1 Execute the request.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Oct 15 17:00:45 UTC 2025 - 50.6K bytes - Viewed (0)