using the AES_SUBST_BYTE macro. Use PROLOGUE and EPILOGUE.
* x86/sha1-compress.asm: Use PROLOGUE and EPILOGUE.
* x86/arcfour-crypt.asm: Likewise.
* x86/aes-encrypt.asm: Likewise.
Rev: src/nettle/x86/aes-encrypt.asm:1.22
Rev: src/nettle/x86/arcfour-crypt.asm:1.13
Rev: src/nettle/x86/sha1-compress.asm:1.11
C uint8_t *src)
.text
.align 16
- .globl C_NAME(nettle_aes_encrypt)
- .type C_NAME(nettle_aes_encrypt),@function
-C_NAME(nettle_aes_encrypt):
+PROLOGUE(nettle_aes_encrypt)
C save all registers that need to be saved
pushl %ebx C 16(%esp)
pushl %ebp C 12(%esp)
popl %ebp
popl %ebx
ret
-.Leord:
- .size C_NAME(nettle_aes_encrypt),.Leord-C_NAME(nettle_aes_encrypt)
+EPILOGUE(nettle_aes_encrypt)
C const uint8_t *src)
.text
.align 16
- .globl C_NAME(nettle_arcfour_crypt)
- .type C_NAME(nettle_arcfour_crypt),@function
-C_NAME(nettle_arcfour_crypt):
+PROLOGUE(nettle_arcfour_crypt)
C save all registers that need to be saved
pushl %ebx C 12(%esp)
pushl %ebp C 8(%esp)
popl %ebp
popl %ebx
ret
-.Leord:
- .size C_NAME(nettle_arcfour_crypt),.Leord-C_NAME(nettle_arcfour_crypt)
+EPILOGUE(nettle_arcfour_crypt)
.text
.align 16
- .globl C_NAME(_nettle_sha1_compress)
- .type C_NAME(_nettle_sha1_compress),@function
-C_NAME(_nettle_sha1_compress):
+PROLOGUE(_nettle_sha1_compress)
C save all registers that need to be saved
pushl %ebx C 80(%esp)
popl %ebp
popl %ebx
ret
-
-.Leord:
- .size _nettle_sha1_compress,.Leord-_nettle_sha1_compress
+EPILOGUE(_nettle_sha1_compress)
C It's possible to shave of half of the stores to tmp in the evaluation of f3,
C although it's probably not worth the effort. This is the trick: