Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Sum256 (0.16 sec)

  1. 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.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. 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)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
  3. 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
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  4. 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.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
Back to top