]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/aes: fix key size typo
authorEric Lagergren <eric@ericlagergren.com>
Wed, 9 Feb 2022 06:38:28 +0000 (22:38 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 21:39:49 +0000 (21:39 +0000)
AES-196 does not exist, but AES-192 does.

Signed-off-by: Eric Lagergren <eric@ericlagergren.com>
Change-Id: I8c9ac67735e99e5b2ee7fb9824029c1164221153
Reviewed-on: https://go-review.googlesource.com/c/go/+/384374
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Cherry Mui <cherryyz@google.com>

src/crypto/aes/asm_amd64.s

index ad871ec5dee57629b2274b002c6a658a3db173ef..ed831bf47ff2a9d41c9bdf98750e341e16c7fd82 100644 (file)
@@ -15,7 +15,7 @@ TEXT ·encryptBlockAsm(SB),NOSPLIT,$0
        ADDQ $16, AX
        PXOR X1, X0
        SUBQ $12, CX
-       JE Lenc196
+       JE Lenc192
        JB Lenc128
 Lenc256:
        MOVUPS 0(AX), X1
@@ -23,7 +23,7 @@ Lenc256:
        MOVUPS 16(AX), X1
        AESENC X1, X0
        ADDQ $32, AX
-Lenc196:
+Lenc192:
        MOVUPS 0(AX), X1
        AESENC X1, X0
        MOVUPS 16(AX), X1
@@ -64,7 +64,7 @@ TEXT ·decryptBlockAsm(SB),NOSPLIT,$0
        ADDQ $16, AX
        PXOR X1, X0
        SUBQ $12, CX
-       JE Ldec196
+       JE Ldec192
        JB Ldec128
 Ldec256:
        MOVUPS 0(AX), X1
@@ -72,7 +72,7 @@ Ldec256:
        MOVUPS 16(AX), X1
        AESDEC X1, X0
        ADDQ $32, AX
-Ldec196:
+Ldec192:
        MOVUPS 0(AX), X1
        AESDEC X1, X0
        MOVUPS 16(AX), X1
@@ -115,7 +115,7 @@ TEXT ·expandKeyAsm(SB),NOSPLIT,$0
        ADDQ $16, BX
        PXOR X4, X4 // _expand_key_* expect X4 to be zero
        CMPL CX, $12
-       JE Lexp_enc196
+       JE Lexp_enc192
        JB Lexp_enc128
 Lexp_enc256:
        MOVUPS 16(AX), X2
@@ -148,7 +148,7 @@ Lexp_enc256:
        AESKEYGENASSIST $0x40, X2, X1
        CALL _expand_key_256a<>(SB)
        JMP Lexp_dec
-Lexp_enc196:
+Lexp_enc192:
        MOVQ 16(AX), X2
        AESKEYGENASSIST $0x01, X2, X1
        CALL _expand_key_192a<>(SB)