blob: 1565c643551048439bd0e2dd1ca34a2200aa0940 [file] [log] [blame]
/*
* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Alternatively, this software may be distributed under the terms of the
* GNU General Public License ("GPL") version 2 as published by the Free
* Software Foundation.
*/
#ifndef CHROMEOS_HASHER_STATE_H_
#define CHROMEOS_HASHER_STATE_H_
#include <cros/firmware_storage.h>
typedef struct {
firmware_storage_t *file;
struct {
void *vblock;
uint32_t offset;
uint32_t size;
void *cache;
} fw[2];
} hasher_state_t;
/**
* Version of VbExHashFirmwareBody() for legacy vboot
*/
VbError_t load_firmware_VbExHashFirmwareBody(VbCommonParams *cparams,
uint32_t firmware_index);
#endif /* CHROMEOS_HASHER_STATE_H_ */