Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for blockSize (0.21 sec)

  1. src/crypto/cipher/cipher.go

    // using a given key. It provides the capability to encrypt
    // or decrypt individual blocks. The mode implementations
    // extend that capability to streams of blocks.
    type Block interface {
    	// BlockSize returns the cipher's block size.
    	BlockSize() int
    
    	// Encrypt encrypts the first block in src into dst.
    	// Dst and src must overlap entirely or not at all.
    	Encrypt(dst, src []byte)
    
    	// Decrypt decrypts the first block in src into dst.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 03:55:33 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. src/crypto/hmac/hmac.go

    			unique = false
    		}
    	}()
    	if !unique {
    		panic("crypto/hmac: hash generation function does not produce unique values")
    	}
    	blocksize := hm.inner.BlockSize()
    	hm.ipad = make([]byte, blocksize)
    	hm.opad = make([]byte, blocksize)
    	if len(key) > blocksize {
    		// If key is too big, hash it.
    		hm.outer.Write(key)
    		key = hm.outer.Sum(nil)
    	}
    	copy(hm.ipad, key)
    	copy(hm.opad, key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. cmd/erasure-decode.go

    			blockLength = e.blockSize - blockOffset
    		case block == endBlock:
    			blockOffset = 0
    			blockLength = (offset + length) % e.blockSize
    		default:
    			blockOffset = 0
    			blockLength = e.blockSize
    		}
    		if blockLength == 0 {
    			break
    		}
    
    		var err error
    		bufs, err = reader.Read(bufs)
    		if len(bufs) > 0 {
    			// Set only if there are be enough data for reconstruction.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 21 14:36:21 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/runtime/pprof/protomem.go

    		values[2], values[3] = scaleHeapSample(r.InUseObjects(), r.InUseBytes(), rate)
    		var blockSize int64
    		if r.AllocObjects > 0 {
    			blockSize = r.AllocBytes / r.AllocObjects
    		}
    		b.pbSample(values, locs, func() {
    			if blockSize != 0 {
    				b.pbLabel(tagSample_Label, "bytes", "", blockSize)
    			}
    		})
    	}
    	b.build()
    	return nil
    }
    
    // scaleHeapSample adjusts the data from a heap Sample to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/image/jpeg/writer_test.go

    // column and first row.
    var zigzag = [blockSize]int{
    	0, 1, 5, 6, 14, 15, 27, 28,
    	2, 4, 7, 13, 16, 26, 29, 42,
    	3, 8, 12, 17, 25, 30, 41, 43,
    	9, 11, 18, 24, 31, 40, 44, 53,
    	10, 19, 23, 32, 39, 45, 52, 54,
    	20, 22, 33, 38, 46, 51, 55, 60,
    	21, 34, 37, 47, 50, 56, 59, 61,
    	35, 36, 48, 49, 57, 58, 62, 63,
    }
    
    func TestZigUnzig(t *testing.T) {
    	for i := 0; i < blockSize; i++ {
    		if unzig[zigzag[i]] != i {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  6. internal/disk/directio_darwin.go

    	fd := f.Fd()
    	_, err := unix.FcntlInt(fd, unix.F_NOCACHE, 0)
    	return err
    }
    
    // AlignedBlock - pass through to directio implementation.
    func AlignedBlock(blockSize int) []byte {
    	return directio.AlignedBlock(blockSize)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 17 14:31:36 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. internal/config/cache/help.go

    			Optional:    true,
    		},
    		config.HelpKV{
    			Key:         BlockSize,
    			Type:        "string",
    			Description: "cache all objects below the specified block size" + defaultHelpPostfix(BlockSize),
    			Optional:    true,
    		},
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 22 00:57:13 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/hash/fnv/fnv.go

    func (s *sum128) Size() int  { return 16 }
    func (s *sum128a) Size() int { return 16 }
    
    func (s *sum32) BlockSize() int   { return 1 }
    func (s *sum32a) BlockSize() int  { return 1 }
    func (s *sum64) BlockSize() int   { return 1 }
    func (s *sum64a) BlockSize() int  { return 1 }
    func (s *sum128) BlockSize() int  { return 1 }
    func (s *sum128a) BlockSize() int { return 1 }
    
    func (s *sum32) Sum(in []byte) []byte {
    	v := uint32(*s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. internal/disk/directio_unix.go

    	}
    	flag &= ^(syscall.O_DIRECT)
    	_, err = unix.FcntlInt(fd, unix.F_SETFL, flag)
    	return err
    }
    
    // AlignedBlock - pass through to directio implementation.
    func AlignedBlock(blockSize int) []byte {
    	return directio.AlignedBlock(blockSize)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 17 14:31:36 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. src/crypto/aes/ctr_s390x.go

    }
    
    // NewCTR returns a Stream which encrypts/decrypts using the AES block
    // cipher in counter mode. The length of iv must be the same as [BlockSize].
    func (c *aesCipherAsm) NewCTR(iv []byte) cipher.Stream {
    	if len(iv) != BlockSize {
    		panic("cipher.NewCTR: IV length must equal block size")
    	}
    	var ac aesctr
    	ac.block = c
    	ac.ctr[0] = byteorder.BeUint64(iv[0:]) // high bits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top