]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/aes: fix key size typo
authorEric Lagergren <eric@ericlagergren.com>
Mon, 11 Apr 2022 06:38:23 +0000 (23:38 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 28 Oct 2024 15:09:37 +0000 (15:09 +0000)
AES-196 does not exist, but AES-192 does.

Change-Id: Iecdcae28fde807d148af9d09c7291fc02c9f6edd
Reviewed-on: https://go-review.googlesource.com/c/go/+/399495
Reviewed-by: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>

src/crypto/aes/asm_arm64.s

index 2bf5bee2b59fb2eff53fa4327d1151a6ac0f3b86..192d0df8965ba9db97a95870941f0430586d19c9 100644 (file)
@@ -22,14 +22,14 @@ TEXT ·encryptBlockAsm(SB),NOSPLIT,$0
 
        CMP     $12, R9
        BLT     enc128
-       BEQ     enc196
+       BEQ     enc192
 enc256:
        VLD1.P  32(R10), [V1.B16, V2.B16]
        AESE    V1.B16, V0.B16
        AESMC   V0.B16, V0.B16
        AESE    V2.B16, V0.B16
        AESMC   V0.B16, V0.B16
-enc196:
+enc192:
        VLD1.P  32(R10), [V3.B16, V4.B16]
        AESE    V3.B16, V0.B16
        AESMC   V0.B16, V0.B16
@@ -73,14 +73,14 @@ TEXT ·decryptBlockAsm(SB),NOSPLIT,$0
 
        CMP     $12, R9
        BLT     dec128
-       BEQ     dec196
+       BEQ     dec192
 dec256:
        VLD1.P  32(R10), [V1.B16, V2.B16]
        AESD    V1.B16, V0.B16
        AESIMC  V0.B16, V0.B16
        AESD    V2.B16, V0.B16
        AESIMC  V0.B16, V0.B16
-dec196:
+dec192:
        VLD1.P  32(R10), [V3.B16, V4.B16]
        AESD    V3.B16, V0.B16
        AESIMC  V0.B16, V0.B16