Mary Ruthven
c3ce180fb0
vboot_hash: check the current hash is for the right region
...
With the RO region being added to software sync, up to two hashes will
be requested during boot. Currently if vboot_hash has a valid hash when
the EC gets an EC_VBOOT_HASH_GET host command then it will return that
hash. When the EC gets a request for the RO hash after it has calculated
the RW hash it returns the RW hash in the response.
This change will add a check that the EC not only has a valid hash, but
that it is for the correct region.
BRANCH=none
BUG=none
TEST=Try to get the RO and RW hashes from depthcharge and make sure they
match the values gotten using ectool
Change-Id: I2449c8d79b4a74f4865dd1234fb253bcdac66a31
Signed-off-by: Mary Ruthven <mruthven@chromium.org >
Reviewed-on: https://chromium-review.googlesource.com/318861
Reviewed-by: Randall Spangler <rspangler@chromium.org >
2016-01-05 23:39:09 -08:00
..
2015-11-09 12:49:36 -08:00
2015-12-21 14:58:56 -08:00
2015-12-11 11:22:01 -08:00
2014-05-21 20:32:17 +00:00
2013-09-27 23:07:21 +00:00
2014-06-15 01:45:21 +00:00
2015-06-04 19:33:00 +00:00
2015-12-04 01:20:33 -08:00
2015-11-09 12:49:36 -08:00
2014-05-21 20:32:17 +00:00
2015-09-08 13:49:09 -07:00
2015-11-09 12:49:30 -08:00
2015-06-10 19:48:08 +00:00
2015-07-14 22:39:36 +00:00
2015-12-16 15:07:21 -08:00
2014-05-21 20:32:17 +00:00
2014-11-18 05:19:47 +00:00
2015-05-19 02:46:27 +00:00
2015-11-17 14:40:26 -08:00
2015-11-26 01:39:36 -08:00
2014-08-29 02:57:00 +00:00
2014-08-08 03:11:38 +00:00
2015-07-17 03:17:50 +00:00
2015-11-17 14:40:26 -08:00
2015-05-28 03:18:06 +00:00
2015-12-04 01:20:33 -08:00
2015-12-09 06:36:22 -08:00
2015-12-09 06:36:22 -08:00
2015-09-25 18:05:27 -07:00
2015-11-09 12:49:37 -08:00
2015-09-29 11:28:40 -07:00
2015-09-26 01:07:39 -07:00
2015-07-13 18:43:56 +00:00
2015-11-09 12:49:43 -08:00
2015-11-25 12:59:17 -08:00
2015-11-03 09:08:21 -08:00
2014-10-24 01:37:58 +00:00
2014-03-06 21:33:09 +00:00
2015-10-27 11:52:34 -07:00
2015-01-30 05:11:06 +00:00
2015-07-17 03:18:03 +00:00
2015-08-28 18:09:06 -07:00
2015-08-31 22:59:52 -07:00
2016-01-04 16:26:21 -08:00
2013-03-22 11:24:29 -07:00
2015-09-25 09:13:34 -07:00
2014-01-14 09:19:45 +00:00
2015-01-14 21:49:36 +00:00
2015-08-10 20:42:18 +00:00
2015-07-23 22:38:06 +00:00
2015-11-13 01:00:39 -08:00
2015-10-13 05:28:54 -07:00
2015-10-13 21:58:01 -07:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2015-09-15 17:56:17 -07:00
2015-09-16 14:49:59 -07:00
2015-12-07 06:43:13 -08:00
2015-11-25 18:15:38 -08:00
2015-12-01 01:11:11 -08:00
2013-08-02 18:22:57 -07:00
2015-10-19 13:45:49 -07:00
2015-11-08 10:07:38 -08:00
2015-11-11 12:58:37 -08:00
2015-06-04 01:15:55 +00:00
2015-02-10 23:07:14 +00:00
2015-10-19 13:45:49 -07:00
2012-07-26 16:25:34 -07:00
2015-12-04 01:20:33 -08:00
2015-12-04 01:20:33 -08:00
2015-06-11 00:08:49 +00:00
2015-07-15 21:57:36 +00:00
2014-11-15 06:00:02 +00:00
2015-09-25 19:36:37 -07:00
2014-05-17 20:14:17 +00:00
2013-12-19 00:12:28 +00:00
2015-02-24 00:27:42 +00:00
2015-02-04 23:32:42 +00:00
2015-11-19 02:18:10 -08:00
2015-09-16 14:49:33 -07:00
2015-09-29 14:42:05 -07:00
2014-05-21 20:32:17 +00:00
2015-11-08 07:59:39 -08:00
2015-01-14 03:15:41 +00:00
2014-01-08 03:49:36 +00:00
2015-12-03 02:22:01 -08:00
2014-05-21 20:32:17 +00:00
2015-09-21 01:13:54 -07:00
2015-11-18 00:14:04 -08:00
2015-10-19 13:45:49 -07:00
2015-11-11 11:00:53 -08:00
2015-11-11 11:00:56 -08:00
2015-12-03 18:01:57 -08:00
2015-12-05 02:05:44 -08:00
2014-05-21 20:32:17 +00:00
2014-08-23 02:42:21 +00:00
2015-01-08 00:38:13 +00:00
2016-01-05 23:39:09 -08:00
2015-10-13 05:28:54 -07:00
2015-09-24 12:46:28 -07:00
2014-02-22 00:50:37 +00:00