Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for inexactOverlap (0.13 sec)

  1. src/crypto/aes/ctr_s390x.go

    }
    
    func (c *aesctr) XORKeyStream(dst, src []byte) {
    	if len(dst) < len(src) {
    		panic("crypto/cipher: output smaller than input")
    	}
    	if alias.InexactOverlap(dst[:len(src)], src) {
    		panic("crypto/cipher: invalid buffer overlap")
    	}
    	for len(src) > 0 {
    		if len(c.buffer) == 0 {
    			c.refill()
    		}
    		n := xorBytes(dst, src, c.buffer)
    		c.buffer = c.buffer[n:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/crypto/cipher/gcm.go

    	}
    	if uint64(len(plaintext)) > ((1<<32)-2)*uint64(g.cipher.BlockSize()) {
    		panic("crypto/cipher: message too large for GCM")
    	}
    
    	ret, out := sliceForAppend(dst, len(plaintext)+g.tagSize)
    	if alias.InexactOverlap(out, plaintext) {
    		panic("crypto/cipher: invalid buffer overlap")
    	}
    
    	var counter, tagMask [gcmBlockSize]byte
    	g.deriveCounter(&counter, nonce)
    
    	g.cipher.Encrypt(tagMask[:], counter[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/crypto/chacha20/chacha_generic.go

    func (s *Cipher) XORKeyStream(dst, src []byte) {
    	if len(src) == 0 {
    		return
    	}
    	if len(dst) < len(src) {
    		panic("chacha20: output smaller than input")
    	}
    	dst = dst[:len(src)]
    	if alias.InexactOverlap(dst, src) {
    		panic("chacha20: invalid buffer overlap")
    	}
    
    	// First, drain any remaining key stream from a previous XORKeyStream.
    	if s.len != 0 {
    		keyStream := s.buf[bufSize-s.len:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 13.9K bytes
    - Viewed (0)
Back to top