Commit c363ce55 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

sha/keccak1600.c: build and make it work with strict warnings.

parent d84df594
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
LIBS=../../libcrypto
SOURCE[../../libcrypto]=\
        sha1dgst.c sha1_one.c sha256.c sha512.c {- $target{sha1_asm_src} -}
        sha1dgst.c sha1_one.c sha256.c sha512.c {- $target{sha1_asm_src} -} \
        keccak1600.c

GENERATE[sha1-586.s]=asm/sha1-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(PROCESSOR)
DEPEND[sha1-586.s]=../perlasm/x86asm.pl
+4 −0
Original line number Diff line number Diff line
@@ -11,6 +11,10 @@
#include <string.h>
#include <assert.h>

size_t SHA3_absorb(uint64_t A[5][5], const unsigned char *inp, size_t len,
                   size_t r);
void SHA3_squeeze(uint64_t A[5][5], unsigned char *out, size_t len, size_t r);

#ifndef KECCAK1600_ASM

#if defined(__x86_64__) || defined(__aarch64__) || \