]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/rc4: disable assembly implementation for nacl/arm.
authorShenghou Ma <minux@golang.org>
Thu, 10 Jul 2014 19:15:16 +0000 (15:15 -0400)
committerShenghou Ma <minux@golang.org>
Thu, 10 Jul 2014 19:15:16 +0000 (15:15 -0400)
It uses an unsupported addressing mode.

LGTM=iant, rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/106370043

src/pkg/crypto/rc4/rc4_arm.s
src/pkg/crypto/rc4/rc4_asm.go
src/pkg/crypto/rc4/rc4_ref.go

index 3aad7294060e269e123258f00d9ca3d72ef5ce77..b9ac72301c0b363618fa921cd7e0858bba4ea91b 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build !nacl
+
 #include "../../../cmd/ld/textflag.h"
 
 // Registers
index fc71b9a6fa2f50199eb95a4f3e361b500a82f009..02e5b67d55385f604a26711d206ed1e105a818ae 100644 (file)
@@ -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 amd64p32 arm 386
+// +build amd64 amd64p32 arm,!nacl 386
 
 package rc4
 
index 1ecce1a7fbcd457ed0a0be54bc39536937debebb..e34bd34cf1df90d7719b20ded5ab87da1a92d3bc 100644 (file)
@@ -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,!amd64p32,!arm,!386
+// +build !amd64,!amd64p32,!arm,!386 arm,nacl
 
 package rc4