Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for xorKeyStreamBlocksGeneric (0.18 sec)

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

    //go:build (!arm64 && !s390x && !ppc64le) || !gc || purego
    
    package chacha20
    
    const bufSize = blockSize
    
    func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) {
    	s.xorKeyStreamBlocksGeneric(dst, src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 361 bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go

    func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) {
    	if cpu.S390X.HasVX {
    		xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter)
    	} else {
    		c.xorKeyStreamBlocksGeneric(dst, src)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 743 bytes
    - Viewed (0)
  3. 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