diff options
author | Luo Ji <ji.luo@nxp.com> | 2018-05-15 17:53:04 +0800 |
---|---|---|
committer | Ji Luo <ji.luo@nxp.com> | 2018-08-20 21:25:44 +0800 |
commit | 449f9048e6f7870385b4fbecb18c846478a8305f (patch) | |
tree | cf50612f7882e11514875e042f3d860585e51033 /include/fsl_avb.h | |
parent | fed4a26ead8b38a4e03ca192876016246fe3e601 (diff) |
[iot] Update libavb in u-boot
This commit did:
1. Sync AVB lib with external/avb, head of commit is:
commit 6d5326a945c2d17d5d0e7718d5cb97663c3b33a2
Author: Neal Ostrem <nealo@google.com>
Date: Tue Apr 24 13:09:45 2018 -0700
Merge fix/changes required after merge from AOSP ToT.
Change library name to one used by AT.
Test: Built successfully and unit tests pass.
Change-Id: I5e5fc9a6010d96cfecfc6faf0858ba930cba65a0
2. Change product id in ATX to be full zeros to sync with
external/avb.
3. Fix build errors and implement ops fsl_set_key_version.
4. Move most nxp modified code to lib/avb/fsl/.
Test: build and boot successfully for imx7d_pico and imx8m_phanbell.
Change-Id: I199a035fe8267b10955299a4b745458d40a2e754
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Diffstat (limited to 'include/fsl_avb.h')
-rw-r--r-- | include/fsl_avb.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/fsl_avb.h b/include/fsl_avb.h index 9cf3249cd7..2bb3d427cc 100644 --- a/include/fsl_avb.h +++ b/include/fsl_avb.h @@ -195,4 +195,28 @@ AvbIOResult fsl_read_permanent_attributes( */ AvbIOResult fsl_read_permanent_attributes_hash( AvbAtxOps* atx_ops, uint8_t hash[AVB_SHA256_DIGEST_SIZE]); + +/* Provides the key version of a key used during verification. This may be + * useful for managing the minimum key version. + */ +void fsl_set_key_version(AvbAtxOps* atx_ops, + size_t rollback_index_location, + uint64_t key_version); + +/* This is the fast version of avb_ab_flow(), this function will + * not check another slot if one slot can pass the verify (or verify + * fail is acceptable). */ +AvbABFlowResult avb_ab_flow_fast(AvbABOps* ab_ops, + const char* const* requested_partitions, + AvbSlotVerifyFlags flags, + AvbHashtreeErrorMode hashtree_error_mode, + AvbSlotVerifyData** out_data); + +/* This is for legacy i.mx6/7 which don't enable A/B but want to + * verify boot/recovery with AVB */ +AvbABFlowResult avb_single_flow(AvbABOps* ab_ops, + const char* const* requested_partitions, + AvbSlotVerifyFlags flags, + AvbHashtreeErrorMode hashtree_error_mode, + AvbSlotVerifyData** out_data); #endif /* __FSL_AVB_H__ */ |