Commit b60efb20 authored by Niels Möller's avatar Niels Möller

* x86/aes-encrypt-internal.asm: Updated use of AES_SUBST_BYTE. USe

decl for outer loop.
* x86/aes-decrypt-internal.asm: Likewise.

Rev: nettle/x86/aes-decrypt-internal.asm:1.3
Rev: nettle/x86/aes-encrypt-internal.asm:1.3
parent 832eebcc
......@@ -72,6 +72,8 @@ PROLOGUE(_nettle_aes_decrypt)
testl %ebp,%ebp
jz .Lend
shrl $4, FRAME_LENGTH
.Lblock_loop:
movl FRAME_CTX,KEY C address of context struct ctx
C get number of rounds to do from ctx struct
......@@ -150,10 +152,8 @@ PROLOGUE(_nettle_aes_decrypt)
AES_STORE(SA,SB,SC,SD, KEY, TMP)
addl $16, FRAME_DST C Increment destination pointer
subl $16, FRAME_LENGTH C Length
decl FRAME_LENGTH
C NOTE: Will loop forever if input data is not an
C integer number of blocks.
jnz .Lblock_loop
.Lend:
......
......@@ -72,6 +72,7 @@ PROLOGUE(_nettle_aes_encrypt)
testl %ebp,%ebp
jz .Lend
shrl $4, FRAME_LENGTH
.Lblock_loop:
movl FRAME_CTX,KEY C address of context struct ctx
C get number of rounds to do from ctx struct
......@@ -150,10 +151,8 @@ PROLOGUE(_nettle_aes_encrypt)
AES_STORE(SA,SB,SC,SD, KEY, TMP)
addl $16, FRAME_DST C Increment destination pointer
subl $16, FRAME_LENGTH C Length
decl FRAME_LENGTH C Length
C NOTE: Will loop forever if input data is not an
C integer number of blocks.
jnz .Lblock_loop
.Lend:
......
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