diff options
Diffstat (limited to 'include/vboot_hash.h')
-rw-r--r-- | include/vboot_hash.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/vboot_hash.h b/include/vboot_hash.h new file mode 100644 index 0000000000..002282b346 --- /dev/null +++ b/include/vboot_hash.h @@ -0,0 +1,23 @@ +/* Copyright (c) 2012 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. + */ + +/* Verified boot hashing memory module for Chrome EC */ + +#ifndef __CROS_EC_VBOOT_HASH_H +#define __CROS_EC_VBOOT_HASH_H + +#include "common.h" + +/** + * Invalidate the hash if the hashed data overlaps the specified region. + * + * @param offset Region start offset in flash + * @param size Size of region in bytes + * + * @return non-zero if the region overlapped the hashed region. + */ +int vboot_hash_invalidate(int offset, int size); + +#endif /* __CROS_EC_VBOOT_HASH_H */ |