Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for sha256 (6.93 sec)

  1. cmd/signature-v4-utils.go

    		}
    	} else {
    		// X-Amz-Content-Sha256, if not set in signed requests, checksum
    		// will default to sha256([]byte("")).
    		defaultSha256Cksum = emptySHA256
    		v, ok = r.Header[xhttp.AmzContentSha256]
    	}
    
    	// We found 'X-Amz-Content-Sha256' return the captured value.
    	if ok {
    		return v[0]
    	}
    
    	// We couldn't find 'X-Amz-Content-Sha256'.
    	return defaultSha256Cksum
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. internal/hash/reader_test.go

    			},
    		},
    		5: {
    			desc:       "Correct sha256, nested",
    			src:        mustReader(t, bytes.NewReader([]byte("abcd")), 4, "", "", 4),
    			size:       4,
    			actualSize: 4,
    			sha256hex:  "88d4266fd4e6338d13b845fcf289579d209c897823b9217da3e161936f031589",
    		},
    		{
    			desc:       "Correct sha256, nested, truncated",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  3. cmd/postpolicyform_test.go

    		// Expired policy document
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 8.9K bytes
    - Viewed (0)
  4. internal/hash/sha256/sh256_fips.go

    //go:build fips
    // +build fips
    
    package sha256
    
    import (
    	fipssha256 "crypto/sha256"
    	"hash"
    )
    
    // New returns a new hash.Hash computing the SHA256 checksum.
    // The SHA256 implementation is FIPS 140-2 compliant when the
    // 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.
    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)
  5. internal/logger/target/kafka/kafka_scram_client_contrib.go

    	"github.com/minio/minio/internal/hash/sha256"
    )
    
    func initScramClient(cfg Config, config *sarama.Config) {
    	switch strings.ToLower(cfg.SASL.Mechanism) {
    	case "sha512":
    		config.Net.SASL.SCRAMClientGeneratorFunc = func() sarama.SCRAMClient { return &XDGSCRAMClient{HashGeneratorFcn: KafkaSHA512} }
    		config.Net.SASL.Mechanism = sarama.SASLMechanism(sarama.SASLTypeSCRAMSHA512)
    	case "sha256":
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 09 04:04:01 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  6. internal/hash/checksum.go

    package hash
    
    import (
    	"bytes"
    	"context"
    	"crypto/sha1"
    	"encoding/base64"
    	"encoding/binary"
    	"fmt"
    	"hash"
    	"hash/crc32"
    	"net/http"
    	"strings"
    
    	"github.com/minio/minio/internal/hash/sha256"
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/logger"
    )
    
    func hashLogIf(ctx context.Context, err error) {
    	logger.LogIf(ctx, "hash", err)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  7. cmd/erasure-heal_test.go

    	blocksize, size int64
    	algorithm       BitrotAlgorithm
    	shouldFail      bool
    }{
    	{dataBlocks: 2, disks: 4, offDisks: 1, badDisks: 0, badStaleDisks: 0, blocksize: int64(blockSizeV2), size: oneMiByte, algorithm: SHA256, shouldFail: false},                   // 0
    	{dataBlocks: 3, disks: 6, offDisks: 2, badDisks: 0, badStaleDisks: 0, blocksize: int64(blockSizeV2), size: oneMiByte, algorithm: BLAKE2b512, shouldFail: false},               // 1
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  8. internal/hash/reader.go

    		return r.checksum
    	}
    	return r.ETag()[:]
    }
    
    // SHA256 returns the SHA256 checksum set as reference value.
    //
    // It corresponds to the checksum that is expected and
    // not the actual SHA256 checksum of the content.
    func (r *Reader) SHA256() []byte {
    	return r.contentSHA256
    }
    
    // SHA256HexString returns a hex representation of the SHA256.
    func (r *Reader) SHA256HexString() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  9. internal/hash/errors.go

    package hash
    
    import (
    	"errors"
    	"fmt"
    )
    
    // SHA256Mismatch - when content sha256 does not match with what was sent from client.
    type SHA256Mismatch struct {
    	ExpectedSHA256   string
    	CalculatedSHA256 string
    }
    
    func (e SHA256Mismatch) Error() string {
    	return "Bad sha256: Expected " + e.ExpectedSHA256 + " does not match calculated " + e.CalculatedSHA256
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon May 15 21:08:54 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  10. cmd/signature-v4_test.go

    				"X-Amz-SignedHeaders":  "host;x-amz-content-sha256;x-amz-date",
    				"X-Amz-Credential":     fmt.Sprintf(credentialTemplate, accessKeyID, now.Format(yyyymmdd), region),
    				"X-Amz-Content-Sha256": payloadSHA256,
    			},
    			headers: map[string]string{
    				"X-Amz-Date":           now.AddDate(0, 0, -2).Format(iso8601Format),
    				"X-Amz-Content-Sha256": payloadSHA256,
    			},
    			region:   region,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
Back to top