Forráskód Böngészése

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 <bradfitz@golang.org>
Marga Manterola 10 éve
szülő
commit
c57d4a7191

+ 1 - 1
curve25519/const_amd64.s

@@ -5,7 +5,7 @@
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 DATA ·REDMASK51(SB)/8, $0x0007FFFFFFFFFFFF
 DATA ·REDMASK51(SB)/8, $0x0007FFFFFFFFFFFF
 GLOBL ·REDMASK51(SB), 8, $8
 GLOBL ·REDMASK51(SB), 8, $8

+ 1 - 1
curve25519/cswap_amd64.s

@@ -5,7 +5,7 @@
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 // func cswap(inout *[5]uint64, v uint64)
 // func cswap(inout *[5]uint64, v uint64)
 TEXT ·cswap(SB),7,$0
 TEXT ·cswap(SB),7,$0

+ 1 - 1
curve25519/curve25519.go

@@ -4,7 +4,7 @@
 
 
 // We have a implementation in amd64 assembly so this code is only run on
 // We have a implementation in amd64 assembly so this code is only run on
 // non-amd64 platforms. The amd64 assembly does not support gccgo.
 // non-amd64 platforms. The amd64 assembly does not support gccgo.
-// +build !amd64 gccgo
+// +build !amd64 gccgo appengine
 
 
 package curve25519
 package curve25519
 
 

+ 1 - 1
curve25519/freeze_amd64.s

@@ -5,7 +5,7 @@
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 // func freeze(inout *[5]uint64)
 // func freeze(inout *[5]uint64)
 TEXT ·freeze(SB),7,$96-8
 TEXT ·freeze(SB),7,$96-8

+ 1 - 1
curve25519/ladderstep_amd64.s

@@ -5,7 +5,7 @@
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 // func ladderstep(inout *[5][5]uint64)
 // func ladderstep(inout *[5][5]uint64)
 TEXT ·ladderstep(SB),0,$384-8
 TEXT ·ladderstep(SB),0,$384-8

+ 1 - 1
curve25519/mont25519_amd64.go

@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 package curve25519
 package curve25519
 
 

+ 1 - 1
curve25519/mul_amd64.s

@@ -5,7 +5,7 @@
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 // func mul(dest, a, b *[5]uint64)
 // func mul(dest, a, b *[5]uint64)
 TEXT ·mul(SB),0,$128-24
 TEXT ·mul(SB),0,$128-24

+ 1 - 1
curve25519/square_amd64.s

@@ -5,7 +5,7 @@
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 // func square(out, in *[5]uint64)
 // func square(out, in *[5]uint64)
 TEXT ·square(SB),7,$96-16
 TEXT ·square(SB),7,$96-16

+ 1 - 1
poly1305/const_amd64.s

@@ -5,7 +5,7 @@
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 DATA ·SCALE(SB)/8, $0x37F4000000000000
 DATA ·SCALE(SB)/8, $0x37F4000000000000
 GLOBL ·SCALE(SB), 8, $8
 GLOBL ·SCALE(SB), 8, $8

+ 1 - 1
poly1305/poly1305_amd64.s

@@ -5,7 +5,7 @@
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 // func poly1305(out *[16]byte, m *byte, mlen uint64, key *[32]key)
 // func poly1305(out *[16]byte, m *byte, mlen uint64, key *[32]key)
 TEXT ·poly1305(SB),0,$224-32
 TEXT ·poly1305(SB),0,$224-32

+ 1 - 1
poly1305/sum_amd64.go

@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
-// +build amd64,!gccgo
+// +build amd64,!gccgo,!appengine
 
 
 package poly1305
 package poly1305
 
 

+ 1 - 1
poly1305/sum_ref.go

@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
-// +build !amd64 gccgo
+// +build !amd64 gccgo appengine
 
 
 package poly1305
 package poly1305