1 # $FreeBSD: src/secure/lib/libcrypto/i386/bf-586.s,v 1.1.4.1 2003/02/14 22:38:15 nectar Exp $
2 # $DragonFly: src/secure/lib/libcrypto/i386/Attic/bf-586.s,v 1.2 2003/06/17 04:27:48 dillon Exp $
3 # Dont even think of reading this code
4 # It was automatically generated by bf-586.pl
5 # Which is a perl program used to generate the x86 assember for
6 # any of elf, a.out, BSDI, Win32, gaswin (for GNU as on Win32) or Solaris
7 # eric <eay@cryptsoft.com>
15 .type BF_encrypt,@function
42 movl 72(%ebp,%eax,4),%eax
43 movl 1096(%ebp,%ebx,4),%ebx
45 movl 2120(%ebp,%ecx,4),%eax
47 movl 3144(%ebp,%edx,4),%edx
62 movl 72(%ebp,%eax,4),%eax
63 movl 1096(%ebp,%ebx,4),%ebx
65 movl 2120(%ebp,%ecx,4),%eax
67 movl 3144(%ebp,%edx,4),%edx
82 movl 72(%ebp,%eax,4),%eax
83 movl 1096(%ebp,%ebx,4),%ebx
85 movl 2120(%ebp,%ecx,4),%eax
87 movl 3144(%ebp,%edx,4),%edx
102 movl 72(%ebp,%eax,4),%eax
103 movl 1096(%ebp,%ebx,4),%ebx
105 movl 2120(%ebp,%ecx,4),%eax
107 movl 3144(%ebp,%edx,4),%edx
122 movl 72(%ebp,%eax,4),%eax
123 movl 1096(%ebp,%ebx,4),%ebx
125 movl 2120(%ebp,%ecx,4),%eax
127 movl 3144(%ebp,%edx,4),%edx
142 movl 72(%ebp,%eax,4),%eax
143 movl 1096(%ebp,%ebx,4),%ebx
145 movl 2120(%ebp,%ecx,4),%eax
147 movl 3144(%ebp,%edx,4),%edx
162 movl 72(%ebp,%eax,4),%eax
163 movl 1096(%ebp,%ebx,4),%ebx
165 movl 2120(%ebp,%ecx,4),%eax
167 movl 3144(%ebp,%edx,4),%edx
182 movl 72(%ebp,%eax,4),%eax
183 movl 1096(%ebp,%ebx,4),%ebx
185 movl 2120(%ebp,%ecx,4),%eax
187 movl 3144(%ebp,%edx,4),%edx
202 movl 72(%ebp,%eax,4),%eax
203 movl 1096(%ebp,%ebx,4),%ebx
205 movl 2120(%ebp,%ecx,4),%eax
207 movl 3144(%ebp,%edx,4),%edx
222 movl 72(%ebp,%eax,4),%eax
223 movl 1096(%ebp,%ebx,4),%ebx
225 movl 2120(%ebp,%ecx,4),%eax
227 movl 3144(%ebp,%edx,4),%edx
242 movl 72(%ebp,%eax,4),%eax
243 movl 1096(%ebp,%ebx,4),%ebx
245 movl 2120(%ebp,%ecx,4),%eax
247 movl 3144(%ebp,%edx,4),%edx
262 movl 72(%ebp,%eax,4),%eax
263 movl 1096(%ebp,%ebx,4),%ebx
265 movl 2120(%ebp,%ecx,4),%eax
267 movl 3144(%ebp,%edx,4),%edx
282 movl 72(%ebp,%eax,4),%eax
283 movl 1096(%ebp,%ebx,4),%ebx
285 movl 2120(%ebp,%ecx,4),%eax
287 movl 3144(%ebp,%edx,4),%edx
302 movl 72(%ebp,%eax,4),%eax
303 movl 1096(%ebp,%ebx,4),%ebx
305 movl 2120(%ebp,%ecx,4),%eax
307 movl 3144(%ebp,%edx,4),%edx
322 movl 72(%ebp,%eax,4),%eax
323 movl 1096(%ebp,%ebx,4),%ebx
325 movl 2120(%ebp,%ecx,4),%eax
327 movl 3144(%ebp,%edx,4),%edx
342 movl 72(%ebp,%eax,4),%eax
343 movl 1096(%ebp,%ebx,4),%ebx
345 movl 2120(%ebp,%ecx,4),%eax
347 movl 3144(%ebp,%edx,4),%edx
349 # Load parameter 0 (16) enc=1
362 .size BF_encrypt,.BF_encrypt_end-BF_encrypt
367 .type BF_decrypt,@function
394 movl 72(%ebp,%eax,4),%eax
395 movl 1096(%ebp,%ebx,4),%ebx
397 movl 2120(%ebp,%ecx,4),%eax
399 movl 3144(%ebp,%edx,4),%edx
414 movl 72(%ebp,%eax,4),%eax
415 movl 1096(%ebp,%ebx,4),%ebx
417 movl 2120(%ebp,%ecx,4),%eax
419 movl 3144(%ebp,%edx,4),%edx
434 movl 72(%ebp,%eax,4),%eax
435 movl 1096(%ebp,%ebx,4),%ebx
437 movl 2120(%ebp,%ecx,4),%eax
439 movl 3144(%ebp,%edx,4),%edx
454 movl 72(%ebp,%eax,4),%eax
455 movl 1096(%ebp,%ebx,4),%ebx
457 movl 2120(%ebp,%ecx,4),%eax
459 movl 3144(%ebp,%edx,4),%edx
474 movl 72(%ebp,%eax,4),%eax
475 movl 1096(%ebp,%ebx,4),%ebx
477 movl 2120(%ebp,%ecx,4),%eax
479 movl 3144(%ebp,%edx,4),%edx
494 movl 72(%ebp,%eax,4),%eax
495 movl 1096(%ebp,%ebx,4),%ebx
497 movl 2120(%ebp,%ecx,4),%eax
499 movl 3144(%ebp,%edx,4),%edx
514 movl 72(%ebp,%eax,4),%eax
515 movl 1096(%ebp,%ebx,4),%ebx
517 movl 2120(%ebp,%ecx,4),%eax
519 movl 3144(%ebp,%edx,4),%edx
534 movl 72(%ebp,%eax,4),%eax
535 movl 1096(%ebp,%ebx,4),%ebx
537 movl 2120(%ebp,%ecx,4),%eax
539 movl 3144(%ebp,%edx,4),%edx
554 movl 72(%ebp,%eax,4),%eax
555 movl 1096(%ebp,%ebx,4),%ebx
557 movl 2120(%ebp,%ecx,4),%eax
559 movl 3144(%ebp,%edx,4),%edx
574 movl 72(%ebp,%eax,4),%eax
575 movl 1096(%ebp,%ebx,4),%ebx
577 movl 2120(%ebp,%ecx,4),%eax
579 movl 3144(%ebp,%edx,4),%edx
594 movl 72(%ebp,%eax,4),%eax
595 movl 1096(%ebp,%ebx,4),%ebx
597 movl 2120(%ebp,%ecx,4),%eax
599 movl 3144(%ebp,%edx,4),%edx
614 movl 72(%ebp,%eax,4),%eax
615 movl 1096(%ebp,%ebx,4),%ebx
617 movl 2120(%ebp,%ecx,4),%eax
619 movl 3144(%ebp,%edx,4),%edx
634 movl 72(%ebp,%eax,4),%eax
635 movl 1096(%ebp,%ebx,4),%ebx
637 movl 2120(%ebp,%ecx,4),%eax
639 movl 3144(%ebp,%edx,4),%edx
654 movl 72(%ebp,%eax,4),%eax
655 movl 1096(%ebp,%ebx,4),%ebx
657 movl 2120(%ebp,%ecx,4),%eax
659 movl 3144(%ebp,%edx,4),%edx
674 movl 72(%ebp,%eax,4),%eax
675 movl 1096(%ebp,%ebx,4),%ebx
677 movl 2120(%ebp,%ecx,4),%eax
679 movl 3144(%ebp,%edx,4),%edx
694 movl 72(%ebp,%eax,4),%eax
695 movl 1096(%ebp,%ebx,4),%ebx
697 movl 2120(%ebp,%ecx,4),%eax
699 movl 3144(%ebp,%edx,4),%edx
701 # Load parameter 0 (1) enc=0
714 .size BF_decrypt,.BF_decrypt_end-BF_decrypt
718 .globl BF_cbc_encrypt
719 .type BF_cbc_encrypt,@function
727 # getting iv ptr from parameter 4
738 # getting encrypt flag from parameter 5
740 # get and push parameter 3
746 andl $4294967288, %ebp
749 jz .L001encrypt_finish
756 .byte 200 # bswapl %eax
758 .byte 203 # bswapl %ebx
765 .byte 200 # bswapl %eax
767 .byte 203 # bswapl %ebx
773 jnz .L002encrypt_loop
780 movl .L004cbc_enc_jmp_table(,%ebp,4),%ebp
803 .byte 200 # bswapl %eax
805 .byte 203 # bswapl %ebx
812 .byte 200 # bswapl %eax
814 .byte 203 # bswapl %ebx
820 andl $4294967288, %ebp
823 jz .L013decrypt_finish
828 .byte 200 # bswapl %eax
830 .byte 203 # bswapl %ebx
837 .byte 200 # bswapl %eax
839 .byte 203 # bswapl %ebx
853 jnz .L014decrypt_loop
861 .byte 200 # bswapl %eax
863 .byte 203 # bswapl %ebx
870 .byte 200 # bswapl %eax
872 .byte 203 # bswapl %ebx
912 .L004cbc_enc_jmp_table:
922 .L023cbc_dec_jmp_table:
931 .L_BF_cbc_encrypt_end:
932 .size BF_cbc_encrypt,.L_BF_cbc_encrypt_end-BF_cbc_encrypt