Commit 5b3034b7 authored by Niels Möller's avatar Niels Möller

(_nettle_sha1_compress): Updated to new

interface. Now responsible for byte conversion.

Rev: src/nettle/sha1-compress.c:1.2
parent e3df06a0
......@@ -110,14 +110,19 @@
/* Perform the SHA transformation. Note that this code, like MD5, seems to
break some optimizing compilers due to the complexity of the expressions
and the size of the basic block. It may be necessary to split it into
sections, e.g. based on the four subrounds
Note that this function destroys the data area */
sections, e.g. based on the four subrounds. */
void
_nettle_sha1_compress(uint32_t *state, uint32_t *data)
_nettle_sha1_compress(uint32_t *state, const uint8_t *input)
{
uint32_t data[16];
uint32_t A, B, C, D, E; /* Local vars */
int i;
for (i = 0; i < 16; i++, input+= 4)
{
data[i] = READ_UINT32(input);
}
/* Set up first buffer and local data buffer */
A = state[0];
......
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