pub(crate) fn validate_bootloader( entry: &BootEntry<Sha512HashValue>, bootloader: Bootloader, ) -> Result<()>