lutil_SHA1Transform( uint32 *state, const unsigned char *buffer )
{
uint32 a, b, c, d, e;
- typedef union {
+ typedef union char64long16_u {
unsigned char c[64];
u_int l[16];
} CHAR64LONG16;
- CHAR64LONG16 *block;
#ifdef SHA1HANDSOFF
- static unsigned char workspace[64];
- block = (CHAR64LONG16 *)workspace;
+ CHAR64LONG16 block[1];
(void)memcpy(block, buffer, 64);
#else
- block = (CHAR64LONG16 *)buffer;
+ CHAR64LONG16 *block = (CHAR64LONG16 *)buffer;
#endif
/* Copy context->state[] to working vars */
lutil_SHA1Update(
lutil_SHA1_CTX *context,
const unsigned char *data,
- u_int len
+ uint32 len
)
{
u_int i, j;
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
-#include <stdlib.h>
+#include <ac/stdlib.h>
#include <ac/errno.h>
#include <ac/unistd.h>