Skip to content

Commit

Permalink
lib: avb: fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Zhu <[email protected]>
Change-Id: I392ca716a62be621d5e02806f82d872fb680f494
  • Loading branch information
Jason Zhu committed Sep 28, 2022
1 parent de76b26 commit 334b1f3
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions include/android_avb/rk_avb_ops_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ extern "C" {
#endif

/* rk used */
#define PERM_ATTR_DIGEST_SIZE 32
#define PERM_ATTR_TOTAL_SIZE 1052
#define VBOOT_KEY_HASH_SIZE 32
#define ANDROID_VBOOT_LOCK 0
#define ANDROID_VBOOT_UNLOCK 1
#define SLOT_NUM 2
#define CURR_SYSTEM_SLOT_SUFFIX "ab"
#define VBMETA_MAX_SIZE 65536
#define ROLLBACK_MAX_SIZE 20
#define LOCK_MASK 0x1
#define UNLOCK_DISABLE_MASK 0x2
#define VBOOT_STATE_SIZE 1000
#define PERM_ATTR_SUCCESS_FLAG 1
#define PERM_ATTR_DIGEST_SIZE 32
#define PERM_ATTR_TOTAL_SIZE 1052
#define VBOOT_KEY_HASH_SIZE 32
#define ANDROID_VBOOT_LOCK 0
#define ANDROID_VBOOT_UNLOCK 1
#define SLOT_NUM 2
#define CURR_SYSTEM_SLOT_SUFFIX "ab"
#define VBMETA_MAX_SIZE 65536
#define ROLLBACK_MAX_SIZE 20
#define LOCK_MASK (1 << 0)
#define UNLOCK_DISABLE_MASK (1 << 1)
#define VBOOT_STATE_SIZE 1000
#define PERM_ATTR_SUCCESS_FLAG 1
/* soc-v use the rsa2048 */
#define VBOOT_KEY_SIZE 256
#define RPMB_BASE_ADDR (64*1024/256)
#define UBOOT_RB_INDEX_OFFSET 24
#define TRUST_RB_INDEX_OFFSET 28
#define ROCHCHIP_RSA_PARAMETER_SIZE 64
#define VBOOT_KEY_SIZE 256
#define RPMB_BASE_ADDR (64*1024/256)
#define UBOOT_RB_INDEX_OFFSET 24
#define TRUST_RB_INDEX_OFFSET 28
#define ROCHCHIP_RSA_PARAMETER_SIZE 64

struct rk_pub_key {
u_int32_t rsa_n[ROCHCHIP_RSA_PARAMETER_SIZE];
Expand Down

0 comments on commit 334b1f3

Please sign in to comment.