2022-08-18 14:49:35 +08:00
|
|
|
// 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.
|
|
|
|
//
|
2025-02-17 08:32:20 +08:00
|
|
|
//go:build !purego && (amd64 || arm64 || ppc64 || ppc64le || riscv64 || s390x)
|
2022-08-18 14:49:35 +08:00
|
|
|
|
|
|
|
package subtle
|
|
|
|
|
2025-03-05 14:54:51 +08:00
|
|
|
import "github.com/emmansun/gmsm/internal/cpu"
|
2023-05-13 10:26:44 +08:00
|
|
|
|
|
|
|
var useAVX2 = cpu.X86.HasAVX2
|
|
|
|
|
2022-08-18 14:49:35 +08:00
|
|
|
//go:noescape
|
|
|
|
func xorBytes(dst, a, b *byte, n int)
|