Commit 5b08a11a authored by Niels Möller's avatar Niels Möller
Browse files

* 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
parent 2cc30c9b
......@@ -92,3 +92,7 @@ define(<AES_SUBST_BYTE>, <
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(<OFFSET>, <ifelse($1,0,,eval(4*$1))>)
......@@ -33,10 +33,6 @@ define(<K1VALUE>, <<$>0x5A827999>) C Rounds 0-19
define(<K2VALUE>, <<$>0x6ED9EBA1>) C Rounds 20-39
define(<K3VALUE>, <<$>0x8F1BBCDC>) C Rounds 40-59
define(<K4VALUE>, <<$>0xCA62C1D6>) C Rounds 60-79
C OFFSET(i)
C Expands to 4*i, or to the empty string if i is zero
define(<OFFSET>, <ifelse($1,0,,eval(4*$1))>)
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment