summaryrefslogtreecommitdiff
path: root/src/include/sha256.h
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-08 17:27:59 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-08 17:27:59 +0200
commitfde72e50fc280e583b8aec13b4d4af3bd1d205e5 (patch)
tree82942834b95758bb1b129dee6a9c9d13d7542f00 /src/include/sha256.h
parent973ae30e7c4f7a1afb385dd3d8eeea178f981445 (diff)
removed unneeded headers; fixed some warnings
Diffstat (limited to 'src/include/sha256.h')
-rw-r--r--src/include/sha256.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/sha256.h b/src/include/sha256.h
index 80ee0ab..d53600c 100644
--- a/src/include/sha256.h
+++ b/src/include/sha256.h
@@ -11,10 +11,10 @@ typedef struct {
uint32_t state[8];
} sha256_ctx;
-static void sha256_init(sha256_ctx *ctx);
-static void sha256_transform(sha256_ctx *ctx, uint8_t *data);
-static void sha256_update(sha256_ctx *ctx, uint8_t *data, uint32_t len);
-static void sha256_final(uint8_t *hash, sha256_ctx *ctx);
+extern void sha256_init(sha256_ctx *ctx);
+extern void sha256_transform(sha256_ctx *ctx, uint8_t *data);
+extern void sha256_update(sha256_ctx *ctx, uint8_t *data, uint32_t len);
+extern void sha256_final(uint8_t *hash, sha256_ctx *ctx);
extern void sha256_hash(char *hash, const char *data, size_t len);
#endif