mirror of https://github.com/golang/go.git
crypto/aes: fix key size typo
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>
This commit is contained in:
parent
e738f06a12
commit
9f8bf04057
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue