ソースを参照

go.crypto: match asm variable names to Go func declarations

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6544048
Russ Cox 13 年 前
コミット
750c6a9860

+ 2 - 2
curve25519/mont25519_amd64.go

@@ -7,8 +7,8 @@ package curve25519
 // These functions are implemented in the .s files. The names of the functions
 // in the rest of the file are also taken from the SUPERCOP sources to help
 // people following along.
-func cswap(*[5]uint64, uint64)
-func ladderstep(*[5][5]uint64)
+func cswap(inout *[5]uint64, v uint64)
+func ladderstep(inout *[5][5]uint64)
 func freeze(inout *[5]uint64)
 func mul(dest, a, b *[5]uint64)
 func square(out, in *[5]uint64)

+ 2 - 2
curve25519/square_amd64.s

@@ -7,8 +7,8 @@
 
 // func square(dest, src *[5]uint64)
 TEXT ·square(SB),7,$96-16
-	MOVQ dest+0(FP), DI
-	MOVQ src+8(FP), SI
+	MOVQ out+0(FP), DI
+	MOVQ in+8(FP), SI
 
 	MOVQ SP,R11
 	MOVQ $31,CX

+ 1 - 1
salsa20/salsa/salsa2020_amd64.s

@@ -9,7 +9,7 @@
 TEXT ·salsa2020XORKeyStream(SB),0,$512-40
 	MOVQ out+0(FP),DI
 	MOVQ in+8(FP),SI
-	MOVQ inlen+16(FP),DX
+	MOVQ n+16(FP),DX
 	MOVQ nonce+24(FP),CX
 	MOVQ key+32(FP),R8