Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 182 for blockSize (0.19 sec)

  1. src/crypto/des/cipher.go

    	c.generateSubkeys(key)
    	return c, nil
    }
    
    func (c *desCipher) BlockSize() int { return BlockSize }
    
    func (c *desCipher) Encrypt(dst, src []byte) {
    	if len(src) < BlockSize {
    		panic("crypto/des: input not full block")
    	}
    	if len(dst) < BlockSize {
    		panic("crypto/des: output not full block")
    	}
    	if alias.InexactOverlap(dst[:BlockSize], src[:BlockSize]) {
    		panic("crypto/des: invalid buffer overlap")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/crypto/ecdsa/ecdsa_s390x.go

    	// and public key y component into the parameter block.
    	copy(params[0*blockSize+blockSize-len(r):], r)
    	copy(params[1*blockSize+blockSize-len(s):], s)
    	hashToBytes(params[2*blockSize:3*blockSize], hash, c)
    	pub.X.FillBytes(params[3*blockSize : 4*blockSize])
    	pub.Y.FillBytes(params[4*blockSize : 5*blockSize])
    	if kdsa(functionCode, &params) != 0 {
    		return errors.New("invalid signature")
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. src/crypto/cipher/cbc.go

    	iv := x.iv
    
    	for len(src) > 0 {
    		// Write the xor to dst, then encrypt in place.
    		subtle.XORBytes(dst[:x.blockSize], src[:x.blockSize], iv)
    		x.b.Encrypt(dst[:x.blockSize], dst[:x.blockSize])
    
    		// Move to the next block with this block as the next iv.
    		iv = dst[:x.blockSize]
    		src = src[x.blockSize:]
    		dst = dst[x.blockSize:]
    	}
    
    	// Save the iv for the next CryptBlocks call.
    	copy(x.iv, iv)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 03:55:33 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  4. internal/config/cache/cache.go

    	configLock.RLock()
    	defer configLock.RUnlock()
    
    	return c.Enable && c.BlockSize > 0 && size <= c.BlockSize
    }
    
    // Update updates new cache frequency
    func (c *Config) Update(ncfg Config) {
    	configLock.Lock()
    	defer configLock.Unlock()
    
    	c.Enable = ncfg.Enable
    	c.Endpoint = ncfg.Endpoint
    	c.BlockSize = ncfg.BlockSize
    	c.clnt = ncfg.clnt
    }
    
    // cache related errors
    var (
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. src/crypto/aes/cipher.go

    	return &c, nil
    }
    
    func (c *aesCipher) BlockSize() int { return BlockSize }
    
    func (c *aesCipher) Encrypt(dst, src []byte) {
    	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
    - 2K bytes
    - Viewed (0)
  6. 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)
  7. src/crypto/aes/cipher_s390x.go

    	copy(c.key, key)
    	return &c, nil
    }
    
    func (c *aesCipherAsm) BlockSize() int { return BlockSize }
    
    func (c *aesCipherAsm) Encrypt(dst, src []byte) {
    	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 04 17:29:44 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. cmd/erasure-heal_test.go

    	badDisks, badStaleDisks int
    
    	blocksize, size int64
    	algorithm       BitrotAlgorithm
    	shouldFail      bool
    }{
    	{dataBlocks: 2, disks: 4, offDisks: 1, badDisks: 0, badStaleDisks: 0, blocksize: int64(blockSizeV2), size: oneMiByte, algorithm: SHA256, shouldFail: false},                   // 0
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. src/crypto/x509/pem_decrypt.go

    	cipherFunc: des.NewTripleDESCipher,
    	keySize:    24,
    	blockSize:  des.BlockSize,
    }, {
    	cipher:     PEMCipherAES128,
    	name:       "AES-128-CBC",
    	cipherFunc: aes.NewCipher,
    	keySize:    16,
    	blockSize:  aes.BlockSize,
    }, {
    	cipher:     PEMCipherAES192,
    	name:       "AES-192-CBC",
    	cipherFunc: aes.NewCipher,
    	keySize:    24,
    	blockSize:  aes.BlockSize,
    }, {
    	cipher:     PEMCipherAES256,
    	name:       "AES-256-CBC",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. 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)
Back to top