Skip to content

Commit c57d4a7

Browse files
marga-googlebradfitz
authored andcommitted
poly1305, curve25519: add build constraints for appengine
Updates: golang/go#9845 Change-Id: I78ce460d2a188ee13dd3f80015919a14eba03d07 Reviewed-on: https://go-review.googlesource.com/8100 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent b7d6bf2 commit c57d4a7

12 files changed

+12
-12
lines changed

curve25519/const_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This code was translated into a form compatible with 6a from the public
66
// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
77

8-
// +build amd64,!gccgo
8+
// +build amd64,!gccgo,!appengine
99

1010
DATA ·REDMASK51(SB)/8, $0x0007FFFFFFFFFFFF
1111
GLOBL ·REDMASK51(SB), 8, $8

curve25519/cswap_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This code was translated into a form compatible with 6a from the public
66
// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
77

8-
// +build amd64,!gccgo
8+
// +build amd64,!gccgo,!appengine
99

1010
// func cswap(inout *[5]uint64, v uint64)
1111
TEXT ·cswap(SB),7,$0

curve25519/curve25519.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// We have a implementation in amd64 assembly so this code is only run on
66
// non-amd64 platforms. The amd64 assembly does not support gccgo.
7-
// +build !amd64 gccgo
7+
// +build !amd64 gccgo appengine
88

99
package curve25519
1010

curve25519/freeze_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This code was translated into a form compatible with 6a from the public
66
// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
77

8-
// +build amd64,!gccgo
8+
// +build amd64,!gccgo,!appengine
99

1010
// func freeze(inout *[5]uint64)
1111
TEXT ·freeze(SB),7,$96-8

curve25519/ladderstep_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This code was translated into a form compatible with 6a from the public
66
// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
77

8-
// +build amd64,!gccgo
8+
// +build amd64,!gccgo,!appengine
99

1010
// func ladderstep(inout *[5][5]uint64)
1111
TEXT ·ladderstep(SB),0,$384-8

curve25519/mont25519_amd64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build amd64,!gccgo
5+
// +build amd64,!gccgo,!appengine
66

77
package curve25519
88

curve25519/mul_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This code was translated into a form compatible with 6a from the public
66
// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
77

8-
// +build amd64,!gccgo
8+
// +build amd64,!gccgo,!appengine
99

1010
// func mul(dest, a, b *[5]uint64)
1111
TEXT ·mul(SB),0,$128-24

curve25519/square_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This code was translated into a form compatible with 6a from the public
66
// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
77

8-
// +build amd64,!gccgo
8+
// +build amd64,!gccgo,!appengine
99

1010
// func square(out, in *[5]uint64)
1111
TEXT ·square(SB),7,$96-16

poly1305/const_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This code was translated into a form compatible with 6a from the public
66
// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
77

8-
// +build amd64,!gccgo
8+
// +build amd64,!gccgo,!appengine
99

1010
DATA ·SCALE(SB)/8, $0x37F4000000000000
1111
GLOBL ·SCALE(SB), 8, $8

poly1305/poly1305_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This code was translated into a form compatible with 6a from the public
66
// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
77

8-
// +build amd64,!gccgo
8+
// +build amd64,!gccgo,!appengine
99

1010
// func poly1305(out *[16]byte, m *byte, mlen uint64, key *[32]key)
1111
TEXT ·poly1305(SB),0,$224-32

poly1305/sum_amd64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build amd64,!gccgo
5+
// +build amd64,!gccgo,!appengine
66

77
package poly1305
88

poly1305/sum_ref.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build !amd64 gccgo
5+
// +build !amd64 gccgo appengine
66

77
package poly1305
88

0 commit comments

Comments
 (0)