Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/bfdev/sha1.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct bfdev_sha1_ctx {
};

extern void
bfdev_sha1_update(bfdev_sha1_ctx_t *ctx, const char *data, size_t size);
bfdev_sha1_update(bfdev_sha1_ctx_t *ctx, const void *data, size_t size);

extern void
bfdev_sha1_finish(bfdev_sha1_ctx_t *ctx, void *hash);
Expand Down
2 changes: 1 addition & 1 deletion include/bfdev/sha2.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct bfdev_sha2_ctx {
};

extern void
bfdev_sha2_update(bfdev_sha2_ctx_t *ctx, const char *data, size_t size);
bfdev_sha2_update(bfdev_sha2_ctx_t *ctx, const void *data, size_t size);

extern void
bfdev_sha224_finish(bfdev_sha2_ctx_t *ctx, void *hash);
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sha1_transform_block(bfdev_sha1_ctx_t *ctx, const void *src, size_t blocks)
}

export void
bfdev_sha1_update(bfdev_sha1_ctx_t *ctx, const char *data, size_t size)
bfdev_sha1_update(bfdev_sha1_ctx_t *ctx, const void *data, size_t size)
{
bfdev_sha1_base_update(ctx, data, size, sha1_transform_block);
}
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/sha2.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sha2_transform_block(bfdev_sha2_ctx_t *ctx, const void *src, size_t blocks)
}

export void
bfdev_sha2_update(bfdev_sha2_ctx_t *ctx, const char *data, size_t size)
bfdev_sha2_update(bfdev_sha2_ctx_t *ctx, const void *data, size_t size)
{
bfdev_sha2_base_update(ctx, data, size, sha2_transform_block);
}
Expand Down
Loading