Print this page
first pass
*** 154,165 ****
* mov rax,[ebx+20h] mov 0x20(%ebx),%rax
* lea rax,[ebx+ecx] lea (%ebx,%ecx),%rax
* sub rax,[ebx+ecx*4-20h] sub -0x20(%ebx,%ecx,4),%rax
*
* 5. Added OpenSolaris ENTRY_NP/SET_SIZE macros from
! * /usr/include/sys/asm_linkage.h, lint(1B) guards, EXPORT DELETE START
! * and EXPORT DELETE END markers, and dummy C function definitions for lint.
*
* 6. Renamed functions and reordered parameters to match OpenSolaris:
* Original Gladman interface:
* int aes_encrypt(const unsigned char *in,
* unsigned char *out, const aes_encrypt_ctx cx[1])/
--- 154,165 ----
* mov rax,[ebx+20h] mov 0x20(%ebx),%rax
* lea rax,[ebx+ecx] lea (%ebx,%ecx),%rax
* sub rax,[ebx+ecx*4-20h] sub -0x20(%ebx,%ecx,4),%rax
*
* 5. Added OpenSolaris ENTRY_NP/SET_SIZE macros from
! * /usr/include/sys/asm_linkage.h, lint(1B) guards, and dummy C function
! * definitions for lint.
*
* 6. Renamed functions and reordered parameters to match OpenSolaris:
* Original Gladman interface:
* int aes_encrypt(const unsigned char *in,
* unsigned char *out, const aes_encrypt_ctx cx[1])/
*** 325,335 ****
#define tab_2(x) 2(tptr,x,8)
#define tab_3(x) 1(tptr,x,8)
#define tab_f(x) 1(tptr,x,8)
#define tab_i(x) 7(tptr,x,8)
- /* EXPORT DELETE START */
#define ff_rnd(p1, p2, p3, p4, round) /* normal forward round */ \
mov fk_ref(round,0), p1; \
mov fk_ref(round,1), p2; \
mov fk_ref(round,2), p3; \
mov fk_ref(round,3), p4; \
--- 325,334 ----
*** 681,691 ****
rol $24, %edi; \
xor %esi, p2; \
xor %edi, p3
#endif /* LAST_ROUND_TABLES */
- /* EXPORT DELETE END */
/*
* OpenSolaris OS:
* void aes_encrypt_amd64(const aes_ks_t *ks, int Nr,
* const uint32_t pt[4], uint32_t ct[4])/
--- 680,689 ----
*** 702,712 ****
enc_vals(w8)
#endif
ENTRY_NP(aes_encrypt_amd64)
- /* EXPORT DELETE START */
#ifdef GLADMAN_INTERFACE
/ Original interface
sub $[4*8], %rsp / gnu/linux/opensolaris binary interface
mov %rsi, (%rsp) / output pointer (P2)
mov %rdx, %r8 / context (P3)
--- 700,709 ----
*** 784,794 ****
4: / Restore registers
mov 1*8(%rsp), %rbx
mov 2*8(%rsp), %rbp
mov 3*8(%rsp), %r12
add $[4*8], %rsp
- /* EXPORT DELETE END */
ret
SET_SIZE(aes_encrypt_amd64)
/*
--- 781,790 ----
*** 808,818 ****
dec_vals(w8)
#endif
ENTRY_NP(aes_decrypt_amd64)
- /* EXPORT DELETE START */
#ifdef GLADMAN_INTERFACE
/ Original interface
sub $[4*8], %rsp / gnu/linux/opensolaris binary interface
mov %rsi, (%rsp) / output pointer (P2)
mov %rdx, %r8 / context (P3)
--- 804,813 ----
*** 896,905 ****
4: / Restore registers
mov 1*8(%rsp), %rbx
mov 2*8(%rsp), %rbp
mov 3*8(%rsp), %r12
add $[4*8], %rsp
- /* EXPORT DELETE END */
ret
SET_SIZE(aes_decrypt_amd64)
#endif /* lint || __lint */
--- 891,899 ----