Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 50 for blockSize (0.15 sec)

  1. src/crypto/aes/cbc_s390x.go

    	return &c
    }
    
    func (x *cbc) BlockSize() int { return BlockSize }
    
    // cryptBlocksChain invokes the cipher message with chaining (KMC) instruction
    // with the given function code. The length must be a multiple of BlockSize (16).
    //
    //go:noescape
    func cryptBlocksChain(c code, iv, key, dst, src *byte, length int)
    
    func (x *cbc) CryptBlocks(dst, src []byte) {
    	if len(src)%BlockSize != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/crypto/md5/md5.go

    }
    
    // The size of an MD5 checksum in bytes.
    const Size = 16
    
    // The blocksize of MD5 in bytes.
    const BlockSize = 64
    
    const (
    	init0 = 0x67452301
    	init1 = 0xEFCDAB89
    	init2 = 0x98BADCFE
    	init3 = 0x10325476
    )
    
    // digest represents the partial evaluation of a checksum.
    type digest struct {
    	s   [4]uint32
    	x   [BlockSize]byte
    	nx  int
    	len uint64
    }
    
    func (d *digest) Reset() {
    	d.s[0] = init0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/crypto/aes/cipher_asm.go

    	return &c.aesCipherAsm, nil
    }
    
    func (c *aesCipherAsm) BlockSize() int { return BlockSize }
    
    func (c *aesCipherAsm) Encrypt(dst, src []byte) {
    	boring.Unreachable()
    	if len(src) < BlockSize {
    		panic("crypto/aes: input not full block")
    	}
    	if len(dst) < BlockSize {
    		panic("crypto/aes: output not full block")
    	}
    	if alias.InexactOverlap(dst[:BlockSize], src[:BlockSize]) {
    		panic("crypto/aes: invalid buffer overlap")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/crypto/cipher/ctr.go

    func NewCTR(block Block, iv []byte) Stream {
    	if ctr, ok := block.(ctrAble); ok {
    		return ctr.NewCTR(iv)
    	}
    	if len(iv) != block.BlockSize() {
    		panic("cipher.NewCTR: IV length must equal block size")
    	}
    	bufSize := streamBufferSize
    	if bufSize < block.BlockSize() {
    		bufSize = block.BlockSize()
    	}
    	return &ctr{
    		b:       block,
    		ctr:     bytes.Clone(iv),
    		out:     make([]byte, 0, bufSize),
    		outUsed: 0,
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/crypto/aes/cbc_ppc64x.go

    	c.enc = cbcDecrypt
    	copy(c.iv[:], iv)
    	return &c
    }
    
    func (x *cbc) BlockSize() int { return BlockSize }
    
    // cryptBlocksChain invokes the cipher message identifying encrypt or decrypt.
    //
    //go:noescape
    func cryptBlocksChain(src, dst *byte, length int, key *uint32, iv *byte, enc int, nr int)
    
    func (x *cbc) CryptBlocks(dst, src []byte) {
    	if len(src)%BlockSize != 0 {
    		panic("crypto/cipher: input not full blocks")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:31 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/crypto/cipher/cfb.go

    }
    
    func newCFB(block Block, iv []byte, decrypt bool) Stream {
    	blockSize := block.BlockSize()
    	if len(iv) != blockSize {
    		// stack trace will indicate whether it was de or encryption
    		panic("cipher.newCFB: IV length must equal block size")
    	}
    	x := &cfb{
    		b:       block,
    		out:     make([]byte, blockSize),
    		next:    make([]byte, blockSize),
    		outUsed: blockSize,
    		decrypt: decrypt,
    	}
    	copy(x.next, iv)
    
    	return x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. cmd/erasure-coding.go

    // Erasure - erasure encoding details.
    type Erasure struct {
    	encoder                  func() reedsolomon.Encoder
    	dataBlocks, parityBlocks int
    	blockSize                int64
    }
    
    // NewErasure creates a new ErasureStorage.
    func NewErasure(ctx context.Context, dataBlocks, parityBlocks int, blockSize int64) (e Erasure, err error) {
    	// Check the parameters for sanity now.
    	if dataBlocks <= 0 || parityBlocks < 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top