aboutsummaryrefslogtreecommitdiffstats
path: root/src/apk_csum.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_csum.h')
-rw-r--r--src/apk_csum.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/apk_csum.h b/src/apk_csum.h
index 564339be16..f2335d386f 100644
--- a/src/apk_csum.h
+++ b/src/apk_csum.h
@@ -43,11 +43,7 @@ static inline int csum_valid(csum_p csum)
static inline void csum_blob(apk_blob_t blob, csum_p csum)
{
- csum_ctx_t ctx;
-
- csum_init(&ctx);
- csum_process(&ctx, (csum_p) blob.ptr, blob.len);
- csum_finish(&ctx, csum);
+ EVP_Digest(blob.ptr, blob.len, csum, NULL, EVP_md5(), NULL);
}
#endif