aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/internal
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2025-01-03 19:06:13 +1100
committerJoel Sing <joel@sing.id.au>2025-02-07 01:33:26 -0800
commitb8fb95becda267e8369a3a2bfd30037c91504fba (patch)
tree18831faf73267dcfeb558e03466d52806a031f5a /src/crypto/internal
parent85b5d11246a2c768646f49f3c6750a139ecd1b21 (diff)
downloadgo-b8fb95becda267e8369a3a2bfd30037c91504fba.tar.xz
crypto/internal/fips140/subtle: combine xor_<goarch>.go files
There is not much point in having per architecture files that all contain the same content. Instead, merge the various xor_<goarch>.go files into a single xor_asm.go file that has appropriate build tags. Change-Id: I555d44b2fd83f260a4855d83cacb9e101d689bc0 Reviewed-on: https://go-review.googlesource.com/c/go/+/639856 Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Filippo Valsorda <filippo@golang.org>
Diffstat (limited to 'src/crypto/internal')
-rw-r--r--src/crypto/internal/fips140/subtle/xor_arm64.go10
-rw-r--r--src/crypto/internal/fips140/subtle/xor_asm.go (renamed from src/crypto/internal/fips140/subtle/xor_amd64.go)2
-rw-r--r--src/crypto/internal/fips140/subtle/xor_loong64.go10
-rw-r--r--src/crypto/internal/fips140/subtle/xor_ppc64x.go10
4 files changed, 1 insertions, 31 deletions
diff --git a/src/crypto/internal/fips140/subtle/xor_arm64.go b/src/crypto/internal/fips140/subtle/xor_arm64.go
deleted file mode 100644
index 65bab4c657..0000000000
--- a/src/crypto/internal/fips140/subtle/xor_arm64.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Copyright 2020 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 !purego
-
-package subtle
-
-//go:noescape
-func xorBytes(dst, a, b *byte, n int)
diff --git a/src/crypto/internal/fips140/subtle/xor_amd64.go b/src/crypto/internal/fips140/subtle/xor_asm.go
index 3bb2f08b7c..16343db658 100644
--- a/src/crypto/internal/fips140/subtle/xor_amd64.go
+++ b/src/crypto/internal/fips140/subtle/xor_asm.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build !purego
+//go:build (amd64 || arm64 || loong64 || ppc64 || ppc64le) && !purego
package subtle
diff --git a/src/crypto/internal/fips140/subtle/xor_loong64.go b/src/crypto/internal/fips140/subtle/xor_loong64.go
deleted file mode 100644
index e49f0fc9e3..0000000000
--- a/src/crypto/internal/fips140/subtle/xor_loong64.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Copyright 2024 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 !purego
-
-package subtle
-
-//go:noescape
-func xorBytes(dst, a, b *byte, n int)
diff --git a/src/crypto/internal/fips140/subtle/xor_ppc64x.go b/src/crypto/internal/fips140/subtle/xor_ppc64x.go
deleted file mode 100644
index 760463c7e5..0000000000
--- a/src/crypto/internal/fips140/subtle/xor_ppc64x.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// 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 (ppc64 || ppc64le) && !purego
-
-package subtle
-
-//go:noescape
-func xorBytes(dst, a, b *byte, n int)