diff options
author | markm <markm@FreeBSD.org> | 2004-03-23 08:32:29 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2004-03-23 08:32:29 +0000 |
commit | 1d9f598c393032e703ef42b49dd7589627f4b697 (patch) | |
tree | ba54db684d8a0eb785c25b140318a0bd26ae6abc /secure/lib/libcrypto/i386/rc4-586.s | |
parent | 1a0675878118e9b1a4e9ad46a2bf8b1ed7c95381 (diff) | |
download | FreeBSD-src-1d9f598c393032e703ef42b49dd7589627f4b697.zip FreeBSD-src-1d9f598c393032e703ef42b49dd7589627f4b697.tar.gz |
Re-add the hand-optimised assembler versions of some of the ciphers
to the build.
Should have done this ages ago: markm
Reminded above to do this: peter
Diffstat (limited to 'secure/lib/libcrypto/i386/rc4-586.s')
-rw-r--r-- | secure/lib/libcrypto/i386/rc4-586.s | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/secure/lib/libcrypto/i386/rc4-586.s b/secure/lib/libcrypto/i386/rc4-586.s index 996718c..ad27498 100644 --- a/secure/lib/libcrypto/i386/rc4-586.s +++ b/secure/lib/libcrypto/i386/rc4-586.s @@ -1,9 +1,9 @@ # $FreeBSD$ - # Dont even think of reading this code - # It was automatically generated by rc4-586.pl - # Which is a perl program used to generate the x86 assember for - # any of elf, a.out, BSDI, Win32, gaswin (for GNU as on Win32) or Solaris - # eric <eay@cryptsoft.com> + + + + + .file "rc4-586.s" .version "01.01" @@ -35,7 +35,7 @@ RC4: jl .L000end .L001start: addl $8, %esi - # Round 0 + addl %eax, %edx andl $255, %edx incl %ecx @@ -49,7 +49,7 @@ RC4: movl (%ebp,%ebx,4), %ebx movl (%ebp,%ecx,4), %eax movb %bl, (%esp) - # Round 1 + addl %eax, %edx andl $255, %edx incl %ecx @@ -63,7 +63,7 @@ RC4: movl (%ebp,%ebx,4), %ebx movl (%ebp,%ecx,4), %eax movb %bl, 1(%esp) - # Round 2 + addl %eax, %edx andl $255, %edx incl %ecx @@ -77,7 +77,7 @@ RC4: movl (%ebp,%ebx,4), %ebx movl (%ebp,%ecx,4), %eax movb %bl, 2(%esp) - # Round 3 + addl %eax, %edx andl $255, %edx incl %ecx @@ -91,7 +91,7 @@ RC4: movl (%ebp,%ebx,4), %ebx movl (%ebp,%ecx,4), %eax movb %bl, 3(%esp) - # Round 4 + addl %eax, %edx andl $255, %edx incl %ecx @@ -105,7 +105,7 @@ RC4: movl (%ebp,%ebx,4), %ebx movl (%ebp,%ecx,4), %eax movb %bl, 4(%esp) - # Round 5 + addl %eax, %edx andl $255, %edx incl %ecx @@ -119,7 +119,7 @@ RC4: movl (%ebp,%ebx,4), %ebx movl (%ebp,%ecx,4), %eax movb %bl, 5(%esp) - # Round 6 + addl %eax, %edx andl $255, %edx incl %ecx @@ -133,7 +133,7 @@ RC4: movl (%ebp,%ebx,4), %ebx movl (%ebp,%ecx,4), %eax movb %bl, 6(%esp) - # Round 7 + addl %eax, %edx andl $255, %edx incl %ecx @@ -147,7 +147,7 @@ RC4: movl (%ebp,%ebx,4), %ebx addl $8, %edi movb %bl, 7(%esp) - # apply the cipher text + movl (%esp), %eax movl -8(%esi), %ebx xorl %ebx, %eax @@ -161,7 +161,7 @@ RC4: cmpl %ebx, %esi jle .L001start .L000end: - # Round 0 + addl $8, %ebx incl %esi cmpl %esi, %ebx @@ -182,7 +182,7 @@ RC4: movb -1(%esi), %bh xorb %bh, %bl movb %bl, (%edi) - # Round 1 + movl 8(%esp), %ebx cmpl %esi, %ebx jle .L002finished @@ -202,7 +202,7 @@ RC4: movb -1(%esi), %bh xorb %bh, %bl movb %bl, 1(%edi) - # Round 2 + movl 8(%esp), %ebx cmpl %esi, %ebx jle .L002finished @@ -222,7 +222,7 @@ RC4: movb -1(%esi), %bh xorb %bh, %bl movb %bl, 2(%edi) - # Round 3 + movl 8(%esp), %ebx cmpl %esi, %ebx jle .L002finished @@ -242,7 +242,7 @@ RC4: movb -1(%esi), %bh xorb %bh, %bl movb %bl, 3(%edi) - # Round 4 + movl 8(%esp), %ebx cmpl %esi, %ebx jle .L002finished @@ -262,7 +262,7 @@ RC4: movb -1(%esi), %bh xorb %bh, %bl movb %bl, 4(%edi) - # Round 5 + movl 8(%esp), %ebx cmpl %esi, %ebx jle .L002finished @@ -282,7 +282,7 @@ RC4: movb -1(%esi), %bh xorb %bh, %bl movb %bl, 5(%edi) - # Round 6 + movl 8(%esp), %ebx cmpl %esi, %ebx jle .L002finished @@ -311,6 +311,6 @@ RC4: popl %ebx popl %ebp ret -.RC4_end: - .size RC4,.RC4_end-RC4 +.L_RC4_end: + .size RC4,.L_RC4_end-RC4 .ident "RC4" |