off_t offset, u8 sha1_md[])
{
u8 buf[BUFFER_SIZE];
- SHA_CTX ctx;
+ struct sha1_ctx ctx;
size_t bytes_remaining;
size_t bytes_to_read;
int ret;
bytes_remaining -= bytes_to_read;
offset += bytes_to_read;
} while (bytes_remaining);
- sha1_final(sha1_md, &ctx);
+ sha1_final(&ctx, sha1_md);
return 0;
}