1 #include <machine/asm.h>
4 .type CAST_encrypt,@function
35 movl CAST_S_table0(,%ecx,4),%ecx
36 movl CAST_S_table1(,%ebx,4),%ebx
38 movl CAST_S_table2(,%eax,4),%ebx
40 movl CAST_S_table3(,%edx,4),%ebx
56 movl CAST_S_table0(,%ecx,4),%ecx
57 movl CAST_S_table1(,%ebx,4),%ebx
59 movl CAST_S_table2(,%eax,4),%ebx
61 movl CAST_S_table3(,%edx,4),%ebx
77 movl CAST_S_table0(,%ecx,4),%ecx
78 movl CAST_S_table1(,%ebx,4),%ebx
80 movl CAST_S_table2(,%eax,4),%ebx
82 movl CAST_S_table3(,%edx,4),%ebx
98 movl CAST_S_table0(,%ecx,4),%ecx
99 movl CAST_S_table1(,%ebx,4),%ebx
101 movl CAST_S_table2(,%eax,4),%ebx
103 movl CAST_S_table3(,%edx,4),%ebx
119 movl CAST_S_table0(,%ecx,4),%ecx
120 movl CAST_S_table1(,%ebx,4),%ebx
122 movl CAST_S_table2(,%eax,4),%ebx
124 movl CAST_S_table3(,%edx,4),%ebx
140 movl CAST_S_table0(,%ecx,4),%ecx
141 movl CAST_S_table1(,%ebx,4),%ebx
143 movl CAST_S_table2(,%eax,4),%ebx
145 movl CAST_S_table3(,%edx,4),%ebx
161 movl CAST_S_table0(,%ecx,4),%ecx
162 movl CAST_S_table1(,%ebx,4),%ebx
164 movl CAST_S_table2(,%eax,4),%ebx
166 movl CAST_S_table3(,%edx,4),%ebx
182 movl CAST_S_table0(,%ecx,4),%ecx
183 movl CAST_S_table1(,%ebx,4),%ebx
185 movl CAST_S_table2(,%eax,4),%ebx
187 movl CAST_S_table3(,%edx,4),%ebx
203 movl CAST_S_table0(,%ecx,4),%ecx
204 movl CAST_S_table1(,%ebx,4),%ebx
206 movl CAST_S_table2(,%eax,4),%ebx
208 movl CAST_S_table3(,%edx,4),%ebx
224 movl CAST_S_table0(,%ecx,4),%ecx
225 movl CAST_S_table1(,%ebx,4),%ebx
227 movl CAST_S_table2(,%eax,4),%ebx
229 movl CAST_S_table3(,%edx,4),%ebx
245 movl CAST_S_table0(,%ecx,4),%ecx
246 movl CAST_S_table1(,%ebx,4),%ebx
248 movl CAST_S_table2(,%eax,4),%ebx
250 movl CAST_S_table3(,%edx,4),%ebx
266 movl CAST_S_table0(,%ecx,4),%ecx
267 movl CAST_S_table1(,%ebx,4),%ebx
269 movl CAST_S_table2(,%eax,4),%ebx
271 movl CAST_S_table3(,%edx,4),%ebx
277 jnz .L000cast_enc_done
291 movl CAST_S_table0(,%ecx,4),%ecx
292 movl CAST_S_table1(,%ebx,4),%ebx
294 movl CAST_S_table2(,%eax,4),%ebx
296 movl CAST_S_table3(,%edx,4),%ebx
312 movl CAST_S_table0(,%ecx,4),%ecx
313 movl CAST_S_table1(,%ebx,4),%ebx
315 movl CAST_S_table2(,%eax,4),%ebx
317 movl CAST_S_table3(,%edx,4),%ebx
333 movl CAST_S_table0(,%ecx,4),%ecx
334 movl CAST_S_table1(,%ebx,4),%ebx
336 movl CAST_S_table2(,%eax,4),%ebx
338 movl CAST_S_table3(,%edx,4),%ebx
354 movl CAST_S_table0(,%ecx,4),%ecx
355 movl CAST_S_table1(,%ebx,4),%ebx
357 movl CAST_S_table2(,%eax,4),%ebx
359 movl CAST_S_table3(,%edx,4),%ebx
372 .size CAST_encrypt,.-.L_CAST_encrypt_begin
374 .type CAST_decrypt,@function
377 .L_CAST_decrypt_begin:
391 jnz .L001cast_dec_skip
406 movl CAST_S_table0(,%ecx,4),%ecx
407 movl CAST_S_table1(,%ebx,4),%ebx
409 movl CAST_S_table2(,%eax,4),%ebx
411 movl CAST_S_table3(,%edx,4),%ebx
427 movl CAST_S_table0(,%ecx,4),%ecx
428 movl CAST_S_table1(,%ebx,4),%ebx
430 movl CAST_S_table2(,%eax,4),%ebx
432 movl CAST_S_table3(,%edx,4),%ebx
448 movl CAST_S_table0(,%ecx,4),%ecx
449 movl CAST_S_table1(,%ebx,4),%ebx
451 movl CAST_S_table2(,%eax,4),%ebx
453 movl CAST_S_table3(,%edx,4),%ebx
469 movl CAST_S_table0(,%ecx,4),%ecx
470 movl CAST_S_table1(,%ebx,4),%ebx
472 movl CAST_S_table2(,%eax,4),%ebx
474 movl CAST_S_table3(,%edx,4),%ebx
491 movl CAST_S_table0(,%ecx,4),%ecx
492 movl CAST_S_table1(,%ebx,4),%ebx
494 movl CAST_S_table2(,%eax,4),%ebx
496 movl CAST_S_table3(,%edx,4),%ebx
512 movl CAST_S_table0(,%ecx,4),%ecx
513 movl CAST_S_table1(,%ebx,4),%ebx
515 movl CAST_S_table2(,%eax,4),%ebx
517 movl CAST_S_table3(,%edx,4),%ebx
533 movl CAST_S_table0(,%ecx,4),%ecx
534 movl CAST_S_table1(,%ebx,4),%ebx
536 movl CAST_S_table2(,%eax,4),%ebx
538 movl CAST_S_table3(,%edx,4),%ebx
554 movl CAST_S_table0(,%ecx,4),%ecx
555 movl CAST_S_table1(,%ebx,4),%ebx
557 movl CAST_S_table2(,%eax,4),%ebx
559 movl CAST_S_table3(,%edx,4),%ebx
575 movl CAST_S_table0(,%ecx,4),%ecx
576 movl CAST_S_table1(,%ebx,4),%ebx
578 movl CAST_S_table2(,%eax,4),%ebx
580 movl CAST_S_table3(,%edx,4),%ebx
596 movl CAST_S_table0(,%ecx,4),%ecx
597 movl CAST_S_table1(,%ebx,4),%ebx
599 movl CAST_S_table2(,%eax,4),%ebx
601 movl CAST_S_table3(,%edx,4),%ebx
617 movl CAST_S_table0(,%ecx,4),%ecx
618 movl CAST_S_table1(,%ebx,4),%ebx
620 movl CAST_S_table2(,%eax,4),%ebx
622 movl CAST_S_table3(,%edx,4),%ebx
638 movl CAST_S_table0(,%ecx,4),%ecx
639 movl CAST_S_table1(,%ebx,4),%ebx
641 movl CAST_S_table2(,%eax,4),%ebx
643 movl CAST_S_table3(,%edx,4),%ebx
659 movl CAST_S_table0(,%ecx,4),%ecx
660 movl CAST_S_table1(,%ebx,4),%ebx
662 movl CAST_S_table2(,%eax,4),%ebx
664 movl CAST_S_table3(,%edx,4),%ebx
680 movl CAST_S_table0(,%ecx,4),%ecx
681 movl CAST_S_table1(,%ebx,4),%ebx
683 movl CAST_S_table2(,%eax,4),%ebx
685 movl CAST_S_table3(,%edx,4),%ebx
701 movl CAST_S_table0(,%ecx,4),%ecx
702 movl CAST_S_table1(,%ebx,4),%ebx
704 movl CAST_S_table2(,%eax,4),%ebx
706 movl CAST_S_table3(,%edx,4),%ebx
722 movl CAST_S_table0(,%ecx,4),%ecx
723 movl CAST_S_table1(,%ebx,4),%ebx
725 movl CAST_S_table2(,%eax,4),%ebx
727 movl CAST_S_table3(,%edx,4),%ebx
739 .size CAST_decrypt,.-.L_CAST_decrypt_begin
740 .globl CAST_cbc_encrypt
741 .type CAST_cbc_encrypt,@function
744 .L_CAST_cbc_encrypt_begin:
770 andl $4294967288,%ebp
773 jz .L003encrypt_finish
783 call .L_CAST_encrypt_begin
793 jnz .L004encrypt_loop
801 leal .L007cbc_enc_jmp_table-.L006PIC_point(%edx),%ecx
802 movl (%ecx,%ebp,4),%ebp
831 call .L_CAST_encrypt_begin
840 andl $4294967288,%ebp
843 jz .L016decrypt_finish
851 call .L_CAST_decrypt_begin
869 jnz .L017decrypt_loop
880 call .L_CAST_decrypt_begin
923 .L007cbc_enc_jmp_table:
925 .long .L015ej1-.L006PIC_point
926 .long .L014ej2-.L006PIC_point
927 .long .L013ej3-.L006PIC_point
928 .long .L011ej4-.L006PIC_point
929 .long .L010ej5-.L006PIC_point
930 .long .L009ej6-.L006PIC_point
931 .long .L008ej7-.L006PIC_point
933 .size CAST_cbc_encrypt,.-.L_CAST_cbc_encrypt_begin