go chacha_arm64 源码

  • 2022-07-15
  • 浏览 (880)

golang chacha_arm64 代码

文件路径:/src/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go

// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.11 && gc && !purego
// +build go1.11,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)
}

相关信息

go 源码目录

相关文章

go chacha_generic 源码

go chacha_noasm 源码

go chacha_ppc64le 源码

go chacha_s390x 源码

go xor 源码

0  赞