Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for crc32 (0.02 sec)

  1. cmd/postpolicyform_test.go

    			wantErr: `Each form field that you specify in a form must appear in the list of policy conditions. "X-Amz-Checksum-Crc32" not specified in the policy.`,
    		},
    		{
    			name:    "unknown key XAmzChecksumCRC32C is error as it does not appear in policy",
    			fv:      defaultFormVals.Clone().Set(http.CanonicalHeaderKey(xhttp.AmzChecksumCRC32C), "crc32c-val"),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. cmd/erasure-metadata-utils.go

    func hashOrder(key string, cardinality int) []int {
    	if cardinality <= 0 {
    		// Returns an empty int slice for cardinality < 0.
    		return nil
    	}
    
    	nums := make([]int, cardinality)
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    
    	start := int(keyCrc % uint32(cardinality))
    	for i := 1; i <= cardinality; i++ {
    		nums[i-1] = 1 + ((start + i) % cardinality)
    	}
    	return nums
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    			wantHeaders:        map[string]string{"x-amz-checksum-crc32c": checksumData(bytesData, crc32.New(crc32.MakeTable(crc32.Castagnoli)))},
    		},
    		// CRC32 as CRC32C
    		11: {
    			bucketName:         bucketName,
    			objectName:         objectName,
    			headers:            map[string]string{"x-amz-checksum-crc32c": checksumData(bytesData, crc32.New(crc32.IEEETable))},
    			data:               bytesData,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
  4. cmd/erasure-sets.go

    	sum64 := siphash.Hash(k0, k1, []byte(key))
    	return int(sum64 % uint64(cardinality))
    }
    
    func crcHashMod(key string, cardinality int) int {
    	if cardinality <= 0 {
    		return -1
    	}
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    	return int(keyCrc % uint32(cardinality))
    }
    
    func hashKey(algo string, key string, cardinality int, id [16]byte) int {
    	switch algo {
    	case formatErasureVersionV2DistributionAlgoV1:
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37K bytes
    - Viewed (1)
  5. cmd/erasure-multipart.go

    		ETag:              partInfo.ETag,
    		LastModified:      partInfo.ModTime,
    		Size:              partInfo.Size,
    		ActualSize:        partInfo.ActualSize,
    		ChecksumCRC32:     partInfo.Checksums["CRC32"],
    		ChecksumCRC32C:    partInfo.Checksums["CRC32C"],
    		ChecksumSHA1:      partInfo.Checksums["SHA1"],
    		ChecksumSHA256:    partInfo.Checksums["SHA256"],
    		ChecksumCRC64NVME: partInfo.Checksums["CRC64NVME"],
    	}, nil
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 47.3K bytes
    - Viewed (0)
  6. cmd/admin-handlers.go

    package cmd
    
    import (
    	"bytes"
    	"context"
    	crand "crypto/rand"
    	"crypto/rsa"
    	"crypto/subtle"
    	"crypto/x509"
    	"encoding/base64"
    	"encoding/json"
    	"encoding/pem"
    	"errors"
    	"fmt"
    	"hash/crc32"
    	"io"
    	"math"
    	"net/http"
    	"net/url"
    	"os"
    	"path"
    	"path/filepath"
    	"regexp"
    	"runtime"
    	"sort"
    	"strconv"
    	"strings"
    	"sync/atomic"
    	"time"
    
    	"github.com/dustin/go-humanize"
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/testdata/loong64enc1.s

    	SRLV	$4, R4, R5		// 85104500
    	SRLV	$4, R4			// 84104500
    	SRLV	$32, R4, R5 		// 85804500
    	SRLV	$32, R4			// 84804500
    
    	MASKEQZ	R4, R5, R6		// a6101300
    	MASKNEZ	R4, R5, R6		// a6901300
    
    	// CRC32
    	CRCWBW	R4, R5, R6		// a6102400
    	CRCWHW	R4, R5, R6		// a6902400
    	CRCWWW	R4, R5, R6		// a6102500
    	CRCWVW	R4, R5, R6		// a6902500
    	CRCCWBW	R4, R5, R6		// a6102600
    	CRCCWHW	R4, R5, R6		// a6902600
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Sep 04 19:24:25 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  8. cmd/object-handlers.go

    		// AWS does not appear to append part number on this API call.
    		if len(chkSums) > 0 {
    			OA.Checksum = &objectAttributesChecksum{
    				ChecksumCRC32:     strings.Split(chkSums["CRC32"], "-")[0],
    				ChecksumCRC32C:    strings.Split(chkSums["CRC32C"], "-")[0],
    				ChecksumSHA1:      strings.Split(chkSums["SHA1"], "-")[0],
    				ChecksumSHA256:    strings.Split(chkSums["SHA256"], "-")[0],
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 120.6K bytes
    - Viewed (0)
  9. cmd/server_test.go

    	c.Assert(err, nil)
    
    	req.Body = io.NopCloser(bytes.NewReader([]byte("foobar!\n")))
    	req.Trailer = http.Header{}
    	req.Trailer.Set("x-amz-checksum-crc32", "rK0DXg==")
    
    	now := UTCNow()
    
    	req = signer.StreamingUnsignedV4(req, "", 8, now)
    
    	maliciousHeaders := http.Header{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118.1K bytes
    - Viewed (0)
Back to top