Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for block_size (0.42 sec)

  1. 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)
  2. 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)
  3. src/compress/bzip2/bzip2.go

    	}
    
    	level := br.ReadBits(8)
    	if level < '1' || level > '9' {
    		return StructuralError("invalid compression level")
    	}
    
    	bz2.fileCRC = 0
    	bz2.blockSize = 100 * 1000 * (level - '0')
    	if bz2.blockSize > len(bz2.tt) {
    		bz2.tt = make([]uint32, bz2.blockSize)
    	}
    	return nil
    }
    
    func (bz2 *reader) Read(buf []byte) (n int, err error) {
    	if bz2.eof {
    		return 0, io.EOF
    	}
    
    	if !bz2.setupDone {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go

    }
    
    type CryptoReportHash struct {
    	Type       [64]int8
    	Blocksize  uint32
    	Digestsize uint32
    }
    
    type CryptoReportCipher struct {
    	Type        [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    }
    
    type CryptoReportBlkCipher struct {
    	Type        [64]int8
    	Geniv       [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    	Ivsize      uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go

    }
    
    type CryptoReportHash struct {
    	Type       [64]int8
    	Blocksize  uint32
    	Digestsize uint32
    }
    
    type CryptoReportCipher struct {
    	Type        [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    }
    
    type CryptoReportBlkCipher struct {
    	Type        [64]int8
    	Geniv       [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    	Ivsize      uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go

    }
    
    type CryptoReportHash struct {
    	Type       [64]int8
    	Blocksize  uint32
    	Digestsize uint32
    }
    
    type CryptoReportCipher struct {
    	Type        [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    }
    
    type CryptoReportBlkCipher struct {
    	Type        [64]int8
    	Geniv       [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    	Ivsize      uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. src/crypto/cipher/gcm.go

    	}
    
    	if cipher, ok := cipher.(gcmAble); ok {
    		return cipher.NewGCM(nonceSize, tagSize)
    	}
    
    	if cipher.BlockSize() != gcmBlockSize {
    		return nil, errors.New("cipher: NewGCM requires 128-bit block cipher")
    	}
    
    	var key [gcmBlockSize]byte
    	cipher.Encrypt(key[:], key[:])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go

    }
    
    type CryptoReportHash struct {
    	Type       [64]int8
    	Blocksize  uint32
    	Digestsize uint32
    }
    
    type CryptoReportCipher struct {
    	Type        [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    }
    
    type CryptoReportBlkCipher struct {
    	Type        [64]int8
    	Geniv       [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    	Ivsize      uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go

    }
    
    type CryptoReportHash struct {
    	Type       [64]int8
    	Blocksize  uint32
    	Digestsize uint32
    }
    
    type CryptoReportCipher struct {
    	Type        [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    }
    
    type CryptoReportBlkCipher struct {
    	Type        [64]int8
    	Geniv       [64]int8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    	Ivsize      uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go

    }
    
    type CryptoReportHash struct {
    	Type       [64]uint8
    	Blocksize  uint32
    	Digestsize uint32
    }
    
    type CryptoReportCipher struct {
    	Type        [64]uint8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    }
    
    type CryptoReportBlkCipher struct {
    	Type        [64]uint8
    	Geniv       [64]uint8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    	Ivsize      uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top