1 /* Run the C pre-processor over this file with one of the following defined
2 * ELF - elf object files,
3 * OUT - a.out object files,
4 * BSDI - BSDI style a.out object files
5 * SOL - Solaris style elf
8 #define TYPE(a,b) .type a,b
9 #define SIZE(a,b) .size a,b
11 #if defined(OUT) || defined(BSDI)
12 #define RC5_32_encrypt _RC5_32_encrypt
13 #define RC5_32_decrypt _RC5_32_decrypt
14 #define RC5_32_cbc_encrypt _RC5_32_cbc_encrypt
32 #if defined(ELF) || defined(SOL)
38 You need to define one of
39 ELF - elf systems - linux-elf, NetBSD and DG-UX
40 OUT - a.out systems - linux-a.out and FreeBSD
41 SOL - solaris systems, which are elf with strange comment lines
42 BSDI - a.out with a very primative version of as.
45 /* Let the Assembler begin :-) */
46 /* Don't even think of reading this code */
47 /* It was automatically generated by rc5-586.pl */
48 /* Which is a perl program used to generate the x86 assember for */
49 /* any of elf, a.out, BSDI,Win32, or Solaris */
50 /* eric <eay@cryptsoft.com> */
58 TYPE(RC5_32_encrypt,@function)
66 /* Load the 2 words */
246 SIZE(RC5_32_encrypt,.RC5_32_encrypt_end-RC5_32_encrypt)
250 .globl RC5_32_decrypt
251 TYPE(RC5_32_decrypt,@function)
259 /* Load the 2 words */
441 SIZE(RC5_32_decrypt,.RC5_32_decrypt_end-RC5_32_decrypt)
445 .globl RC5_32_cbc_encrypt
446 TYPE(RC5_32_cbc_encrypt,@function)
454 /* getting iv ptr from parameter 4 */
465 /* getting encrypt flag from parameter 5 */
467 /* get and push parameter 3 */
473 andl $4294967288, %ebp
476 jz .L005encrypt_finish
492 jnz .L006encrypt_loop
499 movl .L008cbc_enc_jmp_table(,%ebp,4),%ebp
531 andl $4294967288, %ebp
534 jz .L017decrypt_finish
556 jnz .L018decrypt_loop
607 .L008cbc_enc_jmp_table:
617 .L027cbc_dec_jmp_table:
626 .RC5_32_cbc_encrypt_end:
627 SIZE(RC5_32_cbc_encrypt,.RC5_32_cbc_encrypt_end-RC5_32_cbc_encrypt)