Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ta_signed_header is not clear #172

Closed
xlyu opened this issue Jan 6, 2015 · 0 comments
Closed

ta_signed_header is not clear #172

xlyu opened this issue Jan 6, 2015 · 0 comments

Comments

@xlyu
Copy link

xlyu commented Jan 6, 2015

Hi,
Happy New Year!
I realize optee-os has implemented a feature with open trusted excue environment, which can load dynamic trusted applications in run-time OS. That is great.
In optee-os, I get TA including two parts:one parts is TA_SIGNED_HEADER,another part is TA_BODY which come from trusted application's elf file. TA_SIGNED_HEADER defined at kta_types.h:
typedef struct kta_signed_header {
uint32_t magic;
uint16_t size_of_signed_header;
uint16_t size_of_signature;
uint32_t sign_hash_type; /* see t_hash_type /
uint32_t signature_type; /
see t_signature_type /
uint32_t hash_type; /
see t_hash_type /
uint32_t payload_type; /
see enum kta_payload_type /
uint32_t flags; /
reserved /
uint32_t size_of_payload;
uint32_t sw_vers_nbr;
uint32_t load_address;
uint32_t startup_address;
uint32_t spare; /
reserved */
} kta_signed_header_t;
I got a question about TA_SIGNED_HEADER:
Is this(struct kta_signed_header ) not a part of Global Platform's standard, and maybe come from STM's TEE project? Since I can't find the definition of the struct's variable in optee-os,such as signature_type,hash_type,payload_type. and there is no public key handle variable in struct kta_signed_header, means only can use default key to verify signed header.
Does this mean we can redefine the TA's format, as a example, define TA_SIGNED_HEADER and TA_BODY in two separate code fragments?
Thanks.

Best regards.
xlyu

@xlyu xlyu closed this as completed Jan 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant