diff options
author | Ji Luo <ji.luo@nxp.com> | 2018-12-20 16:22:36 +0800 |
---|---|---|
committer | Ji Luo <ji.luo@nxp.com> | 2018-12-24 09:14:31 +0800 |
commit | 7ade5b407fe6164c0d07f32f72e487ae5f6f3964 (patch) | |
tree | f4ff4f88e410fbc5d60ea1741575a3ef4f636f22 /include | |
parent | de975d8500dc9423d10faf8c8290f6463662144c (diff) |
MA-13832 [Trusty] Support random rpmb key set
Sometimes we need to set random rpmb key which is invisible
except for the device.
Generate the random key with hwcrypto interface and support
fastboot command "fastboot oem set-rpmb-random-key" to set it.
Test: build and boot on imx8q.
Change-Id: I44e1b6b091366d8ffceb1159fc65c17610ce5243
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fsl_avb.h | 3 | ||||
-rw-r--r-- | include/fsl_fastboot.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/fsl_avb.h b/include/fsl_avb.h index c377d3a22ba..225f42ab096 100644 --- a/include/fsl_avb.h +++ b/include/fsl_avb.h @@ -251,6 +251,9 @@ int avb_atx_fuse_perm_attr(uint8_t *staged_buffer, uint32_t size); /* Initialize rpmb key with the staged key */ int fastboot_set_rpmb_key(uint8_t *staged_buf, uint32_t key_size); +/* Initialize rpmb key with random key which is generated by caam rng */ +int fastboot_set_rpmb_random_key(void); + /* Generate ATX unlock challenge */ int avb_atx_get_unlock_challenge(struct AvbAtxOps* atx_ops, uint8_t *upload_buffer, uint32_t *size); diff --git a/include/fsl_fastboot.h b/include/fsl_fastboot.h index ad0fce66292..a58663a623f 100644 --- a/include/fsl_fastboot.h +++ b/include/fsl_fastboot.h @@ -86,6 +86,7 @@ #ifdef CONFIG_IMX_TRUSTY_OS #ifndef CONFIG_AVB_ATX #define FASTBOOT_SET_RPMB_KEY "set-rpmb-key" +#define FASTBOOT_SET_RPMB_RANDOM_KEY "set-rpmb-random-key" #define FASTBOOT_SET_VBMETA_PUBLIC_KEY "set-public-key" #endif |