]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/aes: minor ppc64 assembly naming improvements
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 21 Feb 2017 06:57:10 +0000 (22:57 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 21 Feb 2017 18:42:27 +0000 (18:42 +0000)
doEncryptKeyAsm is tail-called from other assembly routines.
Give it a proper prototype so that vet can check it.
Adjust one assembly FP reference accordingly.

Change-Id: I263fcb0191529214b16e6bd67330fadee492eef4
Reviewed-on: https://go-review.googlesource.com/37305
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/crypto/aes/asm_ppc64le.s
src/crypto/aes/cipher_ppc64le.go

index 93975703f5b0bb3917f54adc29090fd8a4ddb8e5..e476d4e747c0e575eb72d7d949df988f121288b8 100644 (file)
@@ -439,7 +439,7 @@ TEXT ·decryptBlockAsm(SB),NOSPLIT|NOFRAME,$0
        // Load the arguments inside the registers
        MOVD dst+0(FP), BLK_OUT
        MOVD src+8(FP), BLK_INP
-       MOVD enc+16(FP), BLK_KEY
+       MOVD dec+16(FP), BLK_KEY
 
        MOVWZ 240(BLK_KEY), BLK_ROUNDS // lwz 6,240(5)
        MOVD $15, BLK_IDX              // li 7,15
index bf7be5f89f5f2330c575cf6014984be8f31c83d5..4a564e926cb250d3f86004bd67e852a5ad0156d5 100644 (file)
@@ -20,7 +20,7 @@ func setDecryptKeyAsm(key *byte, keylen int, dec *uint32) int
 
 //go:noescape
 
-func doEncryptKeyAsm()
+func doEncryptKeyAsm(key *byte, keylen int, dec *uint32) int
 
 //go:noescape