summaryrefslogtreecommitdiff
path: root/sha.h
diff options
context:
space:
mode:
Diffstat (limited to 'sha.h')
-rw-r--r--sha.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/sha.h b/sha.h
index 0cf9b8ca..f9eb69bd 100644
--- a/sha.h
+++ b/sha.h
@@ -53,10 +53,7 @@ sha1_update(struct sha1_ctx *ctx,
const uint8_t *data);
void
-sha1_final(struct sha1_ctx *ctx);
-
-void
-sha1_digest(const struct sha1_ctx *ctx,
+sha1_digest(struct sha1_ctx *ctx,
unsigned length,
uint8_t *digest);
@@ -85,10 +82,7 @@ sha256_update(struct sha256_ctx *ctx,
const uint8_t *data);
void
-sha256_final(struct sha256_ctx *ctx);
-
-void
-sha256_digest(const struct sha256_ctx *ctx,
+sha256_digest(struct sha256_ctx *ctx,
unsigned length,
uint8_t *digest);