This commit is contained in:
Markku-Juhani O. Saarinen
2015-12-14 11:03:22 +00:00
parent c59b90bc0b
commit e827929647
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ $(BINARY): $(OBJS)
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean: clean:
rm -rf $(DIST).tgz $(OBJS) $(BINARY) *~ rm -rf $(DIST)-*.txz $(OBJS) $(BINARY) *~
dist: clean dist: clean
cd ..; \ cd ..; \

2
sha3.c
View File

@@ -152,7 +152,7 @@ int sha3_final(void *md, sha3_ctx_t *c)
// compute a SHA-3 hash (md) of given byte length from "in" // compute a SHA-3 hash (md) of given byte length from "in"
void *sha3(const uint8_t *in, size_t inlen, void *md, int mdlen) void *sha3(const void *in, size_t inlen, void *md, int mdlen)
{ {
sha3_ctx_t sha3; sha3_ctx_t sha3;

2
sha3.h
View File

@@ -30,7 +30,7 @@ int sha3_update(sha3_ctx_t *c, const void *data, size_t len);
int sha3_final(void *md, sha3_ctx_t *c); // digest goes to md int sha3_final(void *md, sha3_ctx_t *c); // digest goes to md
// compute a sha3 hash (md) of given byte length from "in" // compute a sha3 hash (md) of given byte length from "in"
void *sha3(const uint8_t *in, size_t inlen, void *md, int mdlen); void *sha3(const void *in, size_t inlen, void *md, int mdlen);
#endif #endif