Expand description
TEE client API.
§Feature flags
default— enables nothing.macros— re-exports theoptee-teec-macroscrate asoptee_teec::macros, providing the#[plugin_init]and#[plugin_invoke]proc-macro attributes.doc— used for docs.rs to generate docs. It disables nativelibteeclinking.
Re-exports§
pub use optee_teec_sys as raw;
Structs§
- Context
- An abstraction of the logical connection between a client application and a TEE.
- Error
- The error type for TEE operations of
ContextandSession. - Operation
- This type defines the payload of either an open session operation or an invoke command operation. It is also used for cancellation of operations, which may be desirable even if no payload is passed.
- Param
None - Represents none parameter which carries no information.
- Param
TmpRef - This type defines a temporary memory reference. It is used as a
Operationparameter when the corresponding parameter type is one ofMemrefTempInput,MemrefTempOutput, orMemrefTempInout. - Param
Types - Param
Value - This type defines a parameter that is not referencing shared memory, but
carries instead small raw data passed by value. It is used as a
Operationparameter when the corresponding parameter type is one ofValueInput,ValueOutput, orValueInout. - Plugin
Parameters - Parameters for a plugin invocation, carrying the command, sub-command, and the inout buffer.
- Session
- Represents a connection between a client application and a trusted application.
- Uuid
- A Universally Unique Resource Identifier (UUID) type as defined in RFC4122. The value is used to identify a trusted application.
Enums§
- Connection
Methods - Session login methods.
- Error
Kind - A list specifying general categories of TEE client error and its corresponding code in OP-TEE client library.
- Error
Origin - Param
Type - These are used to indicate the type of Parameter encoded inside the operation structure.