Commit e53b43d8 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Herbert Xu

crypto: arm/aes-ce - replace tweak mask literal with composition

Replace the vector load from memory sequence with a simple instruction
sequence to compose the tweak vector directly.
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1dede02b
...@@ -382,13 +382,10 @@ ENDPROC(ce_aes_ctr_encrypt) ...@@ -382,13 +382,10 @@ ENDPROC(ce_aes_ctr_encrypt)
veor \out, \out, \tmp veor \out, \out, \tmp
.endm .endm
.align 3
.Lxts_mul_x:
.quad 1, 0x87
ce_aes_xts_init: ce_aes_xts_init:
vldr d30, .Lxts_mul_x vmov.i32 d30, #0x87 @ compose tweak mask vector
vldr d31, .Lxts_mul_x + 8 vmovl.u32 q15, d30
vshr.u64 d30, d31, #7
ldrd r4, r5, [sp, #16] @ load args ldrd r4, r5, [sp, #16] @ load args
ldr r6, [sp, #28] ldr r6, [sp, #28]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment