Update kern_b_hash from SHA1 to SHA256

We're changing the algorithm for this so the build scripts need to be
adapted in sync.

TEST=Built recovery image and ran it on Kevin.

Cq-Depend: chromium:1707529
Change-Id: Idbfa33ff21ca1e947acaf748f4a45642291133fd
Signed-off-by: Julius Werner <>
Legacy-Commit-Queue: Commit Bot <>
Reviewed-by: Mike Frysinger <>
diff --git a/ b/
index 1e29c44..91766f1 100755
--- a/
+++ b/
@@ -135,7 +135,7 @@
   if [ $FLAGS_sync_keys -eq $FLAGS_TRUE ]; then
     dd if="$INSTALL_VBLOCK" of="$kern_tmp" conv=notrunc 1>&2
-  local kern_hash=$(sha1sum "$kern_tmp" | cut -f1 -d' ')
+  local kern_hash=$(sha256sum "$kern_tmp" | cut -f1 -d' ')
   rm "$kern_tmp"
   # Force all of the file writes to complete, in case it's necessary for