Expand description
TEE internal core API.
§Feature flags
default— enables nothing.std— enables the ability to use the standard library.no_panic_handler— disables the default panic handler (which callsTEE_Panic), allowing TA developers to provide a custom#[panic_handler].unwind_stubs— provides linker stubs for_Unwind_Resumeandrust_eh_personality. These are required by the precompiled sysroot when not using-Z build-std, even thoughpanic=abortguarantees they are never called at runtime.doc— used for docs.rs to generate docs.
Re-exports§
pub use identity::Identity;pub use identity::LoginType;pub use optee_utee_sys as raw;pub use arithmetical::*;pub use crypto_op::*;pub use extension::*;pub use object::*;pub use time::*;pub use uuid::*;
Modules§
- arithmetical
- crypto_
op - deprecated
- Legacy raw-pointer-based parameter API (deprecated).
- extension
- identity
- net
- object
- prelude
- property
- time
- trace
- uuid
Macros§
- define_
property_ key - Macro to define a property key. This macro generates a struct that implements the PropertyKey trait.
- trace_
print - Macro for printing to the trace output, without a newline.
- trace_
println - Macro for printing to the trace output, with a newline.
Use the
format!syntax to write data to the standard output. Seestd::fmtfor more information.
Structs§
- Error
- Parameter
Memref Inout - A memory-reference in/out parameter.
- Parameter
Memref Input - A memory-reference input parameter.
- Parameter
Memref Output - A memory-reference output parameter.
- Parameter
None - Parameter
Value Inout - A value-type in/out parameter.
- Parameter
Value Input - A value-type input parameter.
- Parameter
Value Output - A value-type output parameter.
- TaSession
- TaSession
Builder - TeeParams
- The TeeParams struct is used to manage the parameters for TEE commands.
Enums§
- Error
Kind - A list specifying general categories of TEE error and its corresponding code in OP-TEE OS.
- Param
Index - Param
Type - Enumerates the seven standard TEE parameter types.
- Parameter
Any - A type-erased parameter that dispatches to the correct concrete wrapper based on the runtime type tag.
Traits§
- From
RawParameter - Convert a single raw parameter into a type-safe Rust wrapper.
- From
RawParameters - Convert all four raw parameters at once into a typed tuple.
- Parameter
Memref - Shared buffer length for a memory-reference parameter.
- Parameter
Memref Read - Read-only access to a memory-reference parameter’s buffer.
- Parameter
Memref Write - Write access to a memory-reference parameter’s buffer.
- Parameter
Value Read - Read-only access to the two
u32fields of a value parameter. - Parameter
Value Write - Write access to the two
u32fields of a value parameter.
Type Aliases§
- Parameters
Any - Parameters
None - RawParam
Type - Raw parameter-type tag as passed by the TEE runtime.
Each of the four slots carries a 4-bit type-identifier. Use
TEE_PARAM_TYPE_GET(raw_types, idx)to extract one slot from theRawParamTypesbit-field. - RawParam
Types - Together with a
RawParamsarray this describes the name and content of all four TEE parameters. - RawParams
- Array of four raw
TEE_Paramunions. - Result
- A specialized
Resulttype for TEE operations.
Attribute Macros§
- ta_
close_ session - Attribute to declare the entry point of closing a session. Session context
raw pointer (
*mut T) can be defined as an optional parameter. - ta_
create - Attribute to declare the entry point of creating TA.
- ta_
destroy - Attribute to declare the entry point of destroying TA.
- ta_
invoke_ command - Attribute to declare the entry point of invoking commands.
- ta_
open_ session - Attribute to declare the entry point of opening a session.