From: Niels Möller Date: Wed, 12 Oct 2005 20:55:51 +0000 (+0200) Subject: * x86/machine.m4 (OFFSET): Moved macro, used to be in... X-Git-Tag: nettle_1.14_release_20051205~177 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b08a11a4c51a8b7c19ab33c828b131ee1a92849;p=thirdparty%2Fnettle.git * x86/machine.m4 (OFFSET): Moved macro, used to be in... * x86/sha1-compress.asm (OFFSET): ... removed macro. Rev: src/nettle/x86/machine.m4:1.8 Rev: src/nettle/x86/sha1-compress.asm:1.12 --- diff --git a/x86/machine.m4 b/x86/machine.m4 index dd87b33c..3296482c 100644 --- a/x86/machine.m4 +++ b/x86/machine.m4 @@ -92,3 +92,7 @@ define(, < andl <$>0x000000ff,%ebp movb AES_SBOX + $1 (%ebp),%dl roll <$>8,%edx>)dnl + +C OFFSET(i) +C Expands to 4*i, or to the empty string if i is zero +define(, ) diff --git a/x86/sha1-compress.asm b/x86/sha1-compress.asm index e3f496c4..b37ace37 100644 --- a/x86/sha1-compress.asm +++ b/x86/sha1-compress.asm @@ -33,10 +33,6 @@ define(, <<$>0x5A827999>) C Rounds 0-19 define(, <<$>0x6ED9EBA1>) C Rounds 20-39 define(, <<$>0x8F1BBCDC>) C Rounds 40-59 define(, <<$>0xCA62C1D6>) C Rounds 60-79 - -C OFFSET(i) -C Expands to 4*i, or to the empty string if i is zero -define(, ) C Reads the input via TMP2 into register, byteswaps it, and stores it in the DATA array. C SWAP(index, register) @@ -120,7 +116,7 @@ C adding, and then rotating back. .file "sha1-compress.asm" - C sha1_compress(uint32_t *state, uint8_t *data) + C _nettle_sha1_compress(uint32_t *state, uint8_t *data) .text .align 16