Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for xorKeyStreamBlocksGeneric (0.56 sec)

  1. src/vendor/golang.org/x/crypto/chacha20/chacha_generic.go

    	if uint64(s.counter)+blocksPerBuf > 1<<32 {
    		s.buf = [bufSize]byte{}
    		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.
    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