Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 245 for Hash (0.18 sec)

  1. internal/etag/reader.go

    	uuid []byte
    }
    
    // Write -  implement hash.Hash Write
    func (u UUIDHash) Write(p []byte) (n int, err error) {
    	return len(p), nil
    }
    
    // Sum -  implement md5.Sum
    func (u UUIDHash) Sum(b []byte) []byte {
    	return u.uuid
    }
    
    // Reset -  implement hash.Hash Reset
    func (u UUIDHash) Reset() {
    	return
    }
    
    // Size -  implement hash.Hash Size
    func (u UUIDHash) Size() int {
    	return len(u.uuid)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v1.go

    type BitrotAlgorithm uint
    
    const (
    	// SHA256 represents the SHA-256 hash function
    	SHA256 BitrotAlgorithm = 1 + iota
    	// HighwayHash256 represents the HighwayHash-256 hash function
    	HighwayHash256
    	// HighwayHash256S represents the Streaming HighwayHash-256 hash function
    	HighwayHash256S
    	// BLAKE2b512 represents the BLAKE2b-512 hash function
    	BLAKE2b512
    )
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  3. cmd/data-usage-cache.go

    }
    
    // addChild will add a child based on its hash.
    // If it already exists it will not be added again.
    func (e *dataUsageEntry) addChild(hash dataUsageHash) {
    	if _, ok := e.Children[hash.Key()]; ok {
    		return
    	}
    	if e.Children == nil {
    		e.Children = make(dataUsageHashMap, 1)
    	}
    	e.Children[hash.Key()] = struct{}{}
    }
    
    // Create a clone of the entry.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  4. cmd/xl-storage-format-utils.go

    	return crc
    }
    
    // hashDeterministicBytes will return a deterministic (weak) hash for the map values.
    // Trivial collisions are avoided, but this is by no means a strong hash.
    func hashDeterministicBytes(m map[string][]byte) uint64 {
    	crc := uint64(0x1bbc7e1dde654743)
    	for k, v := range m {
    		crc ^= (xxh3.HashString(k) ^ 0x4ee3bbaf7ab2506b) + (xxh3.Hash(v) ^ 0x8da4c8da66194257)
    	}
    	return crc
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  5. cmd/erasure-multipart.go

    				return oi, InvalidPart{
    					PartNumber: part.PartNumber,
    				}
    			}
    			wantCS := map[string]string{
    				hash.ChecksumCRC32.String():  part.ChecksumCRC32,
    				hash.ChecksumCRC32C.String(): part.ChecksumCRC32C,
    				hash.ChecksumSHA1.String():   part.ChecksumSHA1,
    				hash.ChecksumSHA256.String(): part.ChecksumSHA256,
    			}
    			if wantCS[checksumType.String()] != crc {
    				return oi, InvalidPart{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  6. cmd/config-common.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"io"
    	"net/http"
    
    	"github.com/minio/minio/internal/hash"
    )
    
    var errConfigNotFound = errors.New("config file not found")
    
    func readConfigWithMetadata(ctx context.Context, store objectIO, configFile string, opts ObjectOptions) ([]byte, ObjectInfo, error) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  7. docs/sts/dex.yaml

    # won't look in its underlying storage for passwords.
    #
    # If this option isn't chosen users may be added through the gRPC API.
    staticPasswords:
      - email: "******@****.***"
        # bcrypt hash of the string "password"
        hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
        username: "admin"
    Others
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jul 15 11:55:55 GMT 2020
    - 2.7K bytes
    - Viewed (1)
  8. internal/hash/sha256/sh256_nofips.go

    //go:build !fips
    // +build !fips
    
    package sha256
    
    import (
    	"hash"
    
    	nofipssha256 "github.com/minio/sha256-simd"
    )
    
    // New returns a new hash.Hash computing the SHA256 checksum.
    // The SHA256 implementation is not FIPS 140-2 compliant.
    func New() hash.Hash { return nofipssha256.New() }
    
    // Sum256 returns the SHA256 checksum of the data.
    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)
  9. cmd/bitrot-streaming.go

    package cmd
    
    import (
    	"bytes"
    	"context"
    	"hash"
    	"io"
    	"sync"
    
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/ioutil"
    )
    
    // Calculates bitrot in chunks and writes the hash into the stream.
    type streamingBitrotWriter struct {
    	iow          io.WriteCloser
    	closeWithErr func(err error) error
    	h            hash.Hash
    	shardSize    int64
    	canClose     *sync.WaitGroup
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. cmd/object-api-options.go

    	"context"
    	"fmt"
    	"net/http"
    	"strconv"
    	"strings"
    	"time"
    
    	"github.com/google/uuid"
    	"github.com/minio/minio-go/v7/pkg/encrypt"
    	"github.com/minio/minio/internal/crypto"
    	"github.com/minio/minio/internal/hash"
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    func getDefaultOpts(header http.Header, copySource bool, metadata map[string]string) (opts ObjectOptions, err error) {
    	var clientKey [32]byte
    	var sse encrypt.ServerSide
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 14.2K bytes
    - Viewed (0)
Back to top