summaryrefslogtreecommitdiff
path: root/x86
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2005-10-17 20:33:58 +0200
committerNiels Möller <nisse@lysator.liu.se>2005-10-17 20:33:58 +0200
commit79eb7d8d395ebf02a37cd2677a35dd56d30c592d (patch)
tree4fbba25e96dd76697db4649c63b9278c468baa27 /x86
parent611affba04895e4e8bee3b027083cbd8d2cd8f3a (diff)
downloadnettle-79eb7d8d395ebf02a37cd2677a35dd56d30c592d.tar.gz
* x86/arcfour-crypt.asm: Use ARCFOUR_I and ARCFOUR_J
* asm.m4 (ARCFOUR): New struct. Rev: src/nettle/asm.m4:1.15 Rev: src/nettle/x86/arcfour-crypt.asm:1.14
Diffstat (limited to 'x86')
-rw-r--r--x86/arcfour-crypt.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/x86/arcfour-crypt.asm b/x86/arcfour-crypt.asm
index 74a65a94..5c87ff8c 100644
--- a/x86/arcfour-crypt.asm
+++ b/x86/arcfour-crypt.asm
@@ -55,8 +55,8 @@ C Register usage:
movl 32(%esp), %esi
addl %esi, %edx C Keep src + length
- movzbl 256(%ebp), %eax C i
- movzbl 257(%ebp), %ebx C j
+ movzbl ARCFOUR_I (%ebp), %eax C i
+ movzbl ARCFOUR_J (%ebp), %ebx C j
.Lloop:
C incb %al
incl %eax
@@ -80,8 +80,8 @@ C andl $0xff, %ebx
cmpl %esi, %edx
jne .Lloop
- movb %al, 256(%ebp) C Store the new i and j.
- movb %bl, 257(%ebp)
+ movb %al, ARCFOUR_I (%ebp) C Store the new i and j.
+ movb %bl, ARCFOUR_J (%ebp)
.Lend:
popl %edi
popl %esi