Skip to content

Commit

Permalink
core: add shdr type SHDR_BOOTSTRAP_TA
Browse files Browse the repository at this point in the history
Adds a signed header type for bootstram TA. This type is used when there
isn't any secure domains installed yet.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
jenswi-linaro committed Dec 1, 2017
1 parent 9c11ac0 commit 1ffb3c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/include/signed_hdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
#define SIGNED_HDR_H

#include <inttypes.h>
#include <tee_api_types.h>

enum shdr_img_type {
SHDR_TA = 0,
SHDR_BOOTSTRAP_TA = 1,
};

#define SHDR_MAGIC 0x4f545348
Expand Down Expand Up @@ -71,5 +73,10 @@ struct shdr {
#define SHDR_GET_HASH(x) (uint8_t *)(((struct shdr *)(x)) + 1)
#define SHDR_GET_SIG(x) (SHDR_GET_HASH(x) + (x)->hash_size)

struct shdr_bootstrap_ta {
uint8_t uuid[sizeof(TEE_UUID)];
uint32_t version;
};

#endif /*SIGNED_HDR_H*/

0 comments on commit 1ffb3c8

Please sign in to comment.