Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Sum256 (0.2 sec)

  1. internal/hash/sha256/sh256_nofips.go

    // The SHA256 implementation is not FIPS 140-2 compliant.
    func New() hash.Hash { return nofipssha256.New() }
    
    // Sum256 returns the SHA256 checksum of the data.
    func Sum256(data []byte) [nofipssha256.Size]byte { return nofipssha256.Sum256(data) }
    
    // Size is the size of a SHA256 checksum in bytes.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Aug 29 23:57:16 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  2. internal/hash/sha256/sh256_fips.go

    // boringcrypto branch of Go is used.
    // Ref: https://github.com/golang/go/tree/dev.boringcrypto
    func New() hash.Hash { return fipssha256.New() }
    
    // Sum256 returns the SHA256 checksum of the data.
    func Sum256(data []byte) [fipssha256.Size]byte { return fipssha256.Sum256(data) }
    
    // Size is the size of a SHA256 checksum in bytes.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Aug 29 23:57:16 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  3. 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
    	)
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  5. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 32.7K bytes
    - Viewed (1)
  6. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  7. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  8. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  9. api/go1.2.txt

    pkg crypto/rsa, type PSSOptions struct
    pkg crypto/rsa, type PSSOptions struct, SaltLength int
    pkg crypto/sha1, func Sum([]uint8) [20]uint8
    pkg crypto/sha256, func Sum224([]uint8) [28]uint8
    pkg crypto/sha256, func Sum256([]uint8) [32]uint8
    pkg crypto/sha512, func Sum384([]uint8) [48]uint8
    pkg crypto/sha512, func Sum512([]uint8) [64]uint8
    pkg crypto/subtle, func ConstantTimeLessOrEq(int, int) int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
Back to top