Skip to main content

Crate optee_teec

Crate optee_teec 

Source
Expand description

TEE client API.

§Feature flags

  • default — enables nothing.
  • macros — re-exports the optee-teec-macros crate as optee_teec::macros, providing the #[plugin_init] and #[plugin_invoke] proc-macro attributes.
  • doc — used for docs.rs to generate docs. It disables native libteec linking.

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 Context and Session.
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.
ParamNone
Represents none parameter which carries no information.
ParamTmpRef
This type defines a temporary memory reference. It is used as a Operation parameter when the corresponding parameter type is one of MemrefTempInput, MemrefTempOutput, or MemrefTempInout.
ParamTypes
ParamValue
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 Operation parameter when the corresponding parameter type is one of ValueInput, ValueOutput, or ValueInout.
PluginParameters
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§

ConnectionMethods
Session login methods.
ErrorKind
A list specifying general categories of TEE client error and its corresponding code in OP-TEE client library.
ErrorOrigin
ParamType
These are used to indicate the type of Parameter encoded inside the operation structure.

Traits§

Param

Type Aliases§

Result
A specialized Result type for TEE operations.