Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for blockSize (0.18 sec)

  1. src/crypto/cipher/example_test.go

    	// include it at the beginning of the ciphertext.
    	if len(ciphertext) < aes.BlockSize {
    		panic("ciphertext too short")
    	}
    	iv := ciphertext[:aes.BlockSize]
    	ciphertext = ciphertext[aes.BlockSize:]
    
    	// CBC mode always works in whole blocks.
    	if len(ciphertext)%aes.BlockSize != 0 {
    		panic("ciphertext is not a multiple of the block size")
    	}
    
    	mode := cipher.NewCBCDecrypter(block, iv)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 30 16:23:44 UTC 2018
    - 11.8K bytes
    - Viewed (0)
  2. cmd/erasure-decode_test.go

    	{dataBlocks: 6, onDisks: 12, offDisks: 0, blocksize: int64(oneMiByte), data: oneMiByte, offset: oneMiByte, length: 0, algorithm: BLAKE2b512, shouldFail: false, shouldFailQuorum: false},
    	// 4
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. cmd/erasure-encode_test.go

    	{dataBlocks: 4, onDisks: 8, offDisks: 2, blocksize: int64(blockSizeV2), data: oneMiByte, offset: 2, algorithm: DefaultBitrotAlgorithm, shouldFail: false, shouldFailQuorum: false},                 // 2
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. src/crypto/hmac/hmac_test.go

    			t.Errorf("Size: got %v, want %v", s, tt.size)
    		}
    		if b := h.BlockSize(); b != tt.blocksize {
    			t.Errorf("BlockSize: got %v, want %v", b, tt.blocksize)
    		}
    		for j := 0; j < 4; j++ {
    			n, err := h.Write(tt.in)
    			if n != len(tt.in) || err != nil {
    				t.Errorf("test %d.%d: Write(%d) = %d, %v", i, j, len(tt.in), n, err)
    				continue
    			}
    
    			// Repetitive Sum() calls should return the same value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 18 18:38:14 UTC 2020
    - 21.8K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/crypto/chacha20/chacha_generic.go

    		numBlocks := (len(src) + blockSize - 1) / blockSize
    		buf := s.buf[bufSize-numBlocks*blockSize:]
    		copy(buf, src)
    		s.xorKeyStreamBlocksGeneric(buf, buf)
    		s.len = len(buf) - copy(dst, buf)
    		return
    	}
    
    	// If we have a partial (multi-)block, pad it for xorKeyStreamBlocks, and
    	// keep the leftover keystream for the next XORKeyStream invocation.
    	if len(src) > 0 {
    		s.buf = [bufSize]byte{}
    		copy(s.buf[:], src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 13.9K bytes
    - Viewed (0)
  6. src/archive/tar/writer_test.go

    					testReadFrom{fileOps{
    						int64(1e10 - blockSize),
    						strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
    						int64(1e10 - blockSize),
    						strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
    						int64(1e10 - blockSize),
    						strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
    						int64(1e10 - blockSize),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  7. src/sort/zsortfunc.go

    	}
    }
    
    func stable_func(data lessSwap, n int) {
    	blockSize := 20 // must be > 0
    	a, b := 0, blockSize
    	for b <= n {
    		insertionSort_func(data, a, b)
    		a = b
    		b += blockSize
    	}
    	insertionSort_func(data, a, n)
    
    	for blockSize < n {
    		a, b = 0, 2*blockSize
    		for b <= n {
    			symMerge_func(data, a, a+blockSize, b)
    			a = b
    			b += 2 * blockSize
    		}
    		if m := a + blockSize; m < n {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  8. src/archive/tar/format.go

    )
    
    // blockPadding computes the number of bytes needed to pad offset up to the
    // nearest block edge where 0 <= n < blockSize.
    func blockPadding(offset int64) (n int64) {
    	return -offset & (blockSize - 1)
    }
    
    var zeroBlock block
    
    type block [blockSize]byte
    
    // Convert block to any number of formats.
    func (b *block) toV7() *headerV7       { return (*headerV7)(b) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  9. src/slices/zsortordered.go

    func stableOrdered[E cmp.Ordered](data []E, n int) {
    	blockSize := 20 // must be > 0
    	a, b := 0, blockSize
    	for b <= n {
    		insertionSortOrdered(data, a, b)
    		a = b
    		b += blockSize
    	}
    	insertionSortOrdered(data, a, n)
    
    	for blockSize < n {
    		a, b = 0, 2*blockSize
    		for b <= n {
    			symMergeOrdered(data, a, a+blockSize, b)
    			a = b
    			b += 2 * blockSize
    		}
    		if m := a + blockSize; m < n {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  10. src/sort/zsortinterface.go

    }
    
    func stable(data Interface, n int) {
    	blockSize := 20 // must be > 0
    	a, b := 0, blockSize
    	for b <= n {
    		insertionSort(data, a, b)
    		a = b
    		b += blockSize
    	}
    	insertionSort(data, a, n)
    
    	for blockSize < n {
    		a, b = 0, 2*blockSize
    		for b <= n {
    			symMerge(data, a, a+blockSize, b)
    			a = b
    			b += 2 * blockSize
    		}
    		if m := a + blockSize; m < n {
    			symMerge(data, a, m, n)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.2K bytes
    - Viewed (0)
Back to top