[U-Boot] [RFC PATCH 12/44] image: Move hash checking into its own functions