Skip to content

Commit

Permalink
all: build tags: appengine,!gccgo => purego,gc
Browse files Browse the repository at this point in the history
appengine is obsolete and superseded by purego, and gc is a more
precise tag for files that use gc-syntax assembly.

Change-Id: I716f59de772ebeee4adf4d2a432edf300122cef0
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/269920
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
  • Loading branch information
tamird authored and FiloSottile committed Dec 3, 2020
1 parent c8d3bf9 commit be400ae
Show file tree
Hide file tree
Showing 48 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion argon2/blamka_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!gccgo,!appengine
// +build amd64,gc,!purego

package argon2

Expand Down
2 changes: 1 addition & 1 deletion argon2/blamka_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!gccgo,!appengine
// +build amd64,gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion argon2/blamka_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64 appengine gccgo
// +build !amd64 purego !gc

package argon2

Expand Down
2 changes: 1 addition & 1 deletion blake2b/blake2bAVX2_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build go1.7,amd64,!gccgo,!appengine
// +build go1.7,amd64,gc,!purego

package blake2b

Expand Down
2 changes: 1 addition & 1 deletion blake2b/blake2bAVX2_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build go1.7,amd64,!gccgo,!appengine
// +build go1.7,amd64,gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion blake2b/blake2b_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !go1.7,amd64,!gccgo,!appengine
// +build !go1.7,amd64,gc,!purego

package blake2b

Expand Down
2 changes: 1 addition & 1 deletion blake2b/blake2b_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!gccgo,!appengine
// +build amd64,gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion blake2b/blake2b_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64 appengine gccgo
// +build !amd64 purego !gc

package blake2b

Expand Down
2 changes: 1 addition & 1 deletion blake2s/blake2s_386.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build 386,!gccgo,!appengine
// +build 386,gc,!purego

package blake2s

Expand Down
2 changes: 1 addition & 1 deletion blake2s/blake2s_386.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build 386,!gccgo,!appengine
// +build 386,gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion blake2s/blake2s_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!gccgo,!appengine
// +build amd64,gc,!purego

package blake2s

Expand Down
2 changes: 1 addition & 1 deletion blake2s/blake2s_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!gccgo,!appengine
// +build amd64,gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion blake2s/blake2s_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64,!386 gccgo appengine
// +build !amd64,!386 !gc purego

package blake2s

Expand Down
2 changes: 1 addition & 1 deletion chacha20/chacha_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build go1.11,!gccgo,!purego
// +build go1.11,gc,!purego

package chacha20

Expand Down
2 changes: 1 addition & 1 deletion chacha20/chacha_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build go1.11,!gccgo,!purego
// +build go1.11,gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion chacha20/chacha_noasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !arm64,!s390x,!ppc64le arm64,!go1.11 gccgo purego
// +build !arm64,!s390x,!ppc64le arm64,!go1.11 !gc purego

package chacha20

Expand Down
2 changes: 1 addition & 1 deletion chacha20/chacha_ppc64le.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

package chacha20

Expand Down
2 changes: 1 addition & 1 deletion chacha20/chacha_ppc64le.s
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// The differences in this and the original implementation are
// due to the calling conventions and initialization of constants.

// +build !gccgo,!purego
// +build gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion chacha20/chacha_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

package chacha20

Expand Down
2 changes: 1 addition & 1 deletion chacha20/chacha_s390x.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

#include "go_asm.h"
#include "textflag.h"
Expand Down
2 changes: 1 addition & 1 deletion chacha20poly1305/chacha20poly1305_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

package chacha20poly1305

Expand Down
2 changes: 1 addition & 1 deletion chacha20poly1305/chacha20poly1305_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// This file was originally from https://golang.org/cl/24717 by Vlad Krasnov of CloudFlare.

// +build !gccgo,!purego
// +build gc,!purego

#include "textflag.h"
// General register allocation
Expand Down
2 changes: 1 addition & 1 deletion chacha20poly1305/chacha20poly1305_noasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64 gccgo purego
// +build !amd64 !gc purego

package chacha20poly1305

Expand Down
2 changes: 1 addition & 1 deletion curve25519/curve25519_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!gccgo,!appengine,!purego
// +build amd64,gc,!purego

package curve25519

Expand Down
2 changes: 1 addition & 1 deletion curve25519/curve25519_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// This code was translated into a form compatible with 6a from the public
// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html

// +build amd64,!gccgo,!appengine,!purego
// +build amd64,gc,!purego

#define REDMASK51 0x0007FFFFFFFFFFFF

Expand Down
2 changes: 1 addition & 1 deletion curve25519/curve25519_noasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64 gccgo appengine purego
// +build !amd64 !gc purego

package curve25519

Expand Down
2 changes: 1 addition & 1 deletion internal/subtle/aliasing.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !appengine
// +build !purego

// Package subtle implements functions that are often useful in cryptographic
// code but require careful thought to use correctly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build appengine
// +build purego

// Package subtle implements functions that are often useful in cryptographic
// code but require careful thought to use correctly.
Expand Down
2 changes: 1 addition & 1 deletion poly1305/mac_noasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64,!ppc64le,!s390x gccgo purego
// +build !amd64,!ppc64le,!s390x !gc purego

package poly1305

Expand Down
2 changes: 1 addition & 1 deletion poly1305/sum_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

package poly1305

Expand Down
2 changes: 1 addition & 1 deletion poly1305/sum_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion poly1305/sum_ppc64le.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

package poly1305

Expand Down
2 changes: 1 addition & 1 deletion poly1305/sum_ppc64le.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion poly1305/sum_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

package poly1305

Expand Down
2 changes: 1 addition & 1 deletion poly1305/sum_s390x.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!purego
// +build gc,!purego

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion salsa20/salsa/salsa20_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!appengine,!gccgo
// +build amd64,!purego,gc

package salsa

Expand Down
2 changes: 1 addition & 1 deletion salsa20/salsa/salsa20_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!appengine,!gccgo
// +build amd64,!purego,gc

// This code was translated into a form compatible with 6a from the public
// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
Expand Down
2 changes: 1 addition & 1 deletion salsa20/salsa/salsa20_amd64_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!appengine,!gccgo
// +build amd64,!purego,gc

package salsa

Expand Down
2 changes: 1 addition & 1 deletion salsa20/salsa/salsa20_noasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64 appengine gccgo
// +build !amd64 purego !gc

package salsa

Expand Down
2 changes: 1 addition & 1 deletion sha3/hashes_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build gccgo appengine !s390x
// +build !gc purego !s390x

package sha3

Expand Down
2 changes: 1 addition & 1 deletion sha3/keccakf.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64 appengine gccgo
// +build !amd64 purego !gc

package sha3

Expand Down
2 changes: 1 addition & 1 deletion sha3/keccakf_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!appengine,!gccgo
// +build amd64,!purego,gc

package sha3

Expand Down
2 changes: 1 addition & 1 deletion sha3/keccakf_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!appengine,!gccgo
// +build amd64,!purego,gc

// This code was translated into a form compatible with 6a from the public
// domain sources at https://github.com/gvanas/KeccakCodePackage
Expand Down
2 changes: 1 addition & 1 deletion sha3/sha3_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo,!appengine
// +build gc,!purego

package sha3

Expand Down
Loading

0 comments on commit be400ae

Please sign in to comment.