Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Sum256 (0.14 sec)

  1. 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.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:31:35 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  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
    }
    
    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)
  5. cmd/test-utils_test.go

    		stringToSign = stringToSign + scope + "\n"
    		stringToSign = stringToSign + signature + "\n"
    		stringToSign = stringToSign + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + "\n" // hex(sum256(""))
    		stringToSign += getSHA256Hash(buffer[:n])
    
    		date := sumHMAC([]byte("AWS4"+secretKey), []byte(currTime.Format(yyyymmdd)))
    		region := sumHMAC(date, []byte(regionStr))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
Back to top