apache / incubator-teaclave-trustzone-sdk

Teaclave TrustZone SDK enables safe, functional, and ergonomic development of trustlets.
https://teaclave.apache.org
Apache License 2.0
221 stars 62 forks source link

optee-teec: update OP-TEE implementation fields #108

Closed tchebb closed 1 year ago

tchebb commented 1 year ago

We've been updating our OP-TEE version without updating our Rust definitions of its API types. Since the GlobalPlatform TEE Client API uses client-allocated API objects, our code needs to be aware of and match the implementation-specific fields used by the version of libteec we link to.

This pulls in two changes that we missed, one of which increases the space we need to allocate for TEEC_Context and so results in memory unsafety with our current definitions:

tchebb commented 1 year ago

Sorry, recreated the branch so the CI would run. Didn't realize that would auto-close the PR.

mssun commented 1 year ago

@tchebb Thanks for the contribution. Sometimes, the CI pipeline needs approval to run.