/* MD5 */
static int digest_md5_init(EVP_MD_CTX *ctx);
static int digest_md5_update(EVP_MD_CTX *ctx, const void *data,
- unsigned long count);
+ size_t count);
static int digest_md5_final(EVP_MD_CTX *ctx, unsigned char *md);
static const EVP_MD digest_md5 = {
/* SHA1 */
static int digest_sha1_init(EVP_MD_CTX *ctx);
static int digest_sha1_update(EVP_MD_CTX *ctx, const void *data,
- unsigned long count);
+ size_t count);
static int digest_sha1_final(EVP_MD_CTX *ctx, unsigned char *md);
static const EVP_MD digest_sha1 = {
/* SHA256 */
static int digest_sha256_init(EVP_MD_CTX *ctx);
static int digest_sha256_update(EVP_MD_CTX *ctx, const void *data,
- unsigned long count);
+ size_t count);
static int digest_sha256_final(EVP_MD_CTX *ctx, unsigned char *md);
static const EVP_MD digest_sha256 = {
static int digest_sha384_init(EVP_MD_CTX *ctx);
static int digest_sha512_init(EVP_MD_CTX *ctx);
static int digest_sha512_update(EVP_MD_CTX *ctx, const void *data,
- unsigned long count);
+ size_t count);
static int digest_sha384_final(EVP_MD_CTX *ctx, unsigned char *md);
static int digest_sha512_final(EVP_MD_CTX *ctx, unsigned char *md);
}
static int digest_md5_update(EVP_MD_CTX *ctx, const void *data,
- unsigned long count)
+ size_t count)
{
return MD5_Update(data(ctx), data, (size_t)count);
}
}
static int digest_sha1_update(EVP_MD_CTX *ctx, const void *data,
- unsigned long count)
+ size_t count)
{
return SHA1_Update(data(ctx), data, (size_t)count);
}
}
static int digest_sha256_update(EVP_MD_CTX *ctx, const void *data,
- unsigned long count)
+ size_t count)
{
return SHA256_Update(data(ctx), data, (size_t)count);
}
}
static int digest_sha512_update(EVP_MD_CTX *ctx, const void *data,
- unsigned long count)
+ size_t count)
{
return SHA512_Update(data(ctx), data, (size_t)count);
}