fix
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
2
sha3.c
@@ -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
2
sha3.h
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user