It is permissible to pass any object to these functions and expect
them to hash it.
Signed-off-by: Richard Kettlewell <richard@greenend.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-static void md5_update(void *sst, uint8_t const *buf, int32_t len)
+static void md5_update(void *sst, const void *buf, int32_t len)
{
struct MD5Context *ctx=sst;
{
struct MD5Context *ctx=sst;
/* HASH interface */
typedef void *hash_init_fn(void);
/* HASH interface */
typedef void *hash_init_fn(void);
-typedef void hash_update_fn(void *st, uint8_t const *buf, int32_t len);
+typedef void hash_update_fn(void *st, const void *buf, int32_t len);
typedef void hash_final_fn(void *st, uint8_t *digest);
struct hash_if {
int32_t len; /* Hash output length in bytes */
typedef void hash_final_fn(void *st, uint8_t *digest);
struct hash_if {
int32_t len; /* Hash output length in bytes */
-static void sha1_update(void *sst, uint8_t const *buf, int32_t len)
+static void sha1_update(void *sst, const void *buf, int32_t len)