Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for xorKeyStreamVX (0.16 sec)

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

    const bufSize = 256
    
    // xorKeyStreamVX is an assembly implementation of XORKeyStream. It must only
    // be called when the vector facility is available. Implementation in asm_s390x.s.
    //
    //go:noescape
    func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32)
    
    func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) {
    	if cpu.S390X.HasVX {
    		xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 743 bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go

    // license that can be found in the LICENSE file.
    
    //go:build gc && !purego
    
    package chacha20
    
    const bufSize = 256
    
    //go:noescape
    func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32)
    
    func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) {
    	xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 441 bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s

    	VMRLF t, u, b \ // b = {a[1], b[1], c[1], d[1]}
    	VMRHF v, w, c \ // c = {a[2], b[2], c[2], d[2]}
    	VMRLF v, w, d // d = {a[3], b[3], c[3], d[3]}
    
    // func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32)
    TEXT ·xorKeyStreamVX(SB), NOSPLIT, $0
    	MOVD $·constants<>(SB), R1
    	MOVD dst+0(FP), R2         // R2=&dst[0]
    	LMG  src+24(FP), R3, R4    // R3=&src[0] R4=len(src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s

    // license that can be found in the LICENSE file.
    
    //go:build gc && !purego
    
    #include "textflag.h"
    
    #define NUM_ROUNDS 10
    
    // func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32)
    TEXT ·xorKeyStreamVX(SB), NOSPLIT, $0
    	MOVD	dst+0(FP), R1
    	MOVD	src+24(FP), R2
    	MOVD	src_len+32(FP), R3
    	MOVD	key+48(FP), R4
    	MOVD	nonce+56(FP), R6
    	MOVD	counter+64(FP), R7
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top