blob: 9d2cc12a3f8ed440715b79701d6c0b2e4957f028 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __FSL_AVBKEY_H__
#define __FSL_AVBKEY_H__
#define CAAM_PAD 48
#define AVB_PUBKY_FLAG 0xABAB
#define AVB_PUBKY_OFFSET 0x1000
#define AVB_RBIDX_FLAG 0xCDCD
#define AVB_RBIDX_START 0x2000
#define AVB_RBIDX_ALIGN 0x1000
#define AVB_RBIDX_LEN 0x08
#define AVB_RBIDX_INITVAL 0
#define AVB_KBLB_MAGIC "\0KBLB!"
#define AVB_KBLB_MAGIC_LEN 6
struct kblb_tag {
uint32_t flag;
uint32_t offset;
uint32_t len;
};
typedef struct kblb_tag kblb_tag_t;
struct kblb_hdr {
/* avbkey partition magic */
char magic[AVB_KBLB_MAGIC_LEN];
/* public key keyblb tag */
kblb_tag_t pubk_tag;
/* rollback index keyblb tag */
kblb_tag_t rbk_tags[AVB_MAX_NUMBER_OF_ROLLBACK_INDEX_SLOTS];
};
typedef struct kblb_hdr kblb_hdr_t;
#endif
|