From fe461b618e44a9a488ba02b6d9c0fabebc434da5 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 6 Jun 2017 14:18:14 +0100 Subject: [PATCH] trivial: Use SHA256 for the store origin If we're using this for caching it seems a good idea to use a secure cache function. --- src/fu-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fu-main.c b/src/fu-main.c index 1f4cc70a6..22839c958 100644 --- a/src/fu-main.c +++ b/src/fu-main.c @@ -1666,7 +1666,7 @@ fu_main_get_store_from_fd (FuMainPrivate *priv, gint fd, GError **error) } /* get a checksum of the file and use it as the origin */ - checksum = g_compute_checksum_for_data (G_CHECKSUM_SHA1, + checksum = g_compute_checksum_for_data (G_CHECKSUM_SHA256, g_bytes_get_data (blob_cab, NULL), g_bytes_get_size (blob_cab)); as_store_set_origin (store, checksum);