Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 158 for blockSize (0.17 sec)

  1. src/crypto/aes/aes_gcm.go

    // details.
    func (g *gcmAsm) Seal(dst, nonce, plaintext, data []byte) []byte {
    	if len(nonce) != g.nonceSize {
    		panic("crypto/cipher: incorrect nonce length given to GCM")
    	}
    	if uint64(len(plaintext)) > ((1<<32)-2)*BlockSize {
    		panic("crypto/cipher: message too large for GCM")
    	}
    
    	var counter, tagMask [gcmBlockSize]byte
    
    	if len(nonce) == gcmStandardNonceSize {
    		// Init counter to nonce||1
    		copy(counter[:], nonce)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. cmd/object-api-common.go

    package cmd
    
    import (
    	"sync"
    
    	"github.com/dustin/go-humanize"
    )
    
    const (
    	// Block size used for all internal operations version 1.
    
    	// TLDR..
    	// Not used anymore xl.meta captures the right blockSize
    	// so blockSizeV2 should be used for all future purposes.
    	// this value is kept here to calculate the max API
    	// requests based on RAM size for existing content.
    	blockSizeV1 = 10 * humanize.MiByte
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. cmd/xl-storage-free-version_test.go

    		Size:             0,
    		Mode:             0,
    		Metadata:         nil,
    		Parts:            nil,
    		Erasure: ErasureInfo{
    			Algorithm:    ReedSolomon.String(),
    			DataBlocks:   4,
    			ParityBlocks: 2,
    			BlockSize:    10000,
    			Index:        1,
    			Distribution: []int{1, 2, 3, 4, 5, 6, 7, 8},
    			Checksums: []ChecksumInfo{{
    				PartNumber: 1,
    				Algorithm:  HighwayHash256S,
    				Hash:       nil,
    			}},
    		},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. src/crypto/cipher/gcm_test.go

    			t.Errorf("test[%v]: authentication failed", i)
    		}
    	}
    }
    
    var _ cipher.Block = (*wrapper)(nil)
    
    type wrapper struct {
    	block cipher.Block
    }
    
    func (w *wrapper) BlockSize() int          { return w.block.BlockSize() }
    func (w *wrapper) Encrypt(dst, src []byte) { w.block.Encrypt(dst, src) }
    func (w *wrapper) Decrypt(dst, src []byte) { w.block.Decrypt(dst, src) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 15:27:49 UTC 2023
    - 35K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/crypto/sha3/sha3.go

    	// Specific to SHA-3 and SHAKE.
    	outputLen int             // the default output size in bytes
    	state     spongeDirection // whether the sponge is absorbing or squeezing
    }
    
    // BlockSize returns the rate of sponge underlying this hash function.
    func (d *state) BlockSize() int { return d.rate }
    
    // Size returns the output size of the hash function in bytes.
    func (d *state) Size() int { return d.outputLen }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. src/crypto/tls/conn.go

    			plaintext, err = c.Open(payload[:0], nonce, payload, additionalData)
    			if err != nil {
    				return nil, 0, alertBadRecordMAC
    			}
    		case cbcMode:
    			blockSize := c.BlockSize()
    			minPayload := explicitNonceLen + roundUp(hc.mac.Size()+1, blockSize)
    			if len(payload)%blockSize != 0 || len(payload) < minPayload {
    				return nil, 0, alertBadRecordMAC
    			}
    
    			if explicitNonceLen > 0 {
    				c.SetIV(payload[:explicitNonceLen])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  7. cmd/bitrot.go

    		}
    		var (
    			hash = algorithm.New()
    			msg  = make([]byte, 0, hash.Size()*hash.BlockSize())
    			sum  = make([]byte, 0, hash.Size())
    		)
    		for i := 0; i < hash.Size()*hash.BlockSize(); i += hash.Size() {
    			hash.Write(msg)
    			sum = hash.Sum(sum[:0])
    			msg = append(msg, sum...)
    			hash.Reset()
    		}
    		if !bytes.Equal(sum, checksum) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. cmd/speedtest.go

    		}
    	}()
    	return ch
    }
    
    func driveSpeedTest(ctx context.Context, opts madmin.DriveSpeedTestOpts) madmin.DriveSpeedTestResult {
    	perf := &dperf.DrivePerf{
    		Serial:    opts.Serial,
    		BlockSize: opts.BlockSize,
    		FileSize:  opts.FileSize,
    	}
    
    	localPaths := globalEndpoints.LocalDisksPaths()
    	var ignoredPaths []string
    	paths := func() (tmpPaths []string) {
    		for _, lp := range localPaths {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 09:45:10 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. src/crypto/aes/gcm_ppc64x.go

    // details.
    func (g *gcmAsm) Seal(dst, nonce, plaintext, data []byte) []byte {
    	if len(nonce) != g.nonceSize {
    		panic("cipher: incorrect nonce length given to GCM")
    	}
    	if uint64(len(plaintext)) > ((1<<32)-2)*BlockSize {
    		panic("cipher: message too large for GCM")
    	}
    
    	ret, out := sliceForAppend(dst, len(plaintext)+g.tagSize)
    
    	var counter, tagMask [gcmBlockSize]byte
    	g.deriveCounter(&counter, nonce)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    	case size < fi.Erasure.BlockSize:
    		// No need to allocate fully fi.Erasure.BlockSize buffer if the incoming data is smaller.
    		buffer = make([]byte, size, 2*size+int64(fi.Erasure.ParityBlocks+fi.Erasure.DataBlocks-1))
    	}
    
    	if len(buffer) > int(fi.Erasure.BlockSize) {
    		buffer = buffer[:fi.Erasure.BlockSize]
    	}
    	writers := make([]io.Writer, len(onlineDisks))
    	for i, disk := range onlineDisks {
    		if disk == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
Back to top