Skip to main content

Crate optee_utee

Crate optee_utee 

Source
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 calls TEE_Panic), allowing TA developers to provide a custom #[panic_handler].
  • unwind_stubs — provides linker stubs for _Unwind_Resume and rust_eh_personality. These are required by the precompiled sysroot when not using -Z build-std, even though panic=abort guarantees 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. See std::fmt for more information.

Structs§

Error
ParameterMemrefInout
A memory-reference in/out parameter.
ParameterMemrefInput
A memory-reference input parameter.
ParameterMemrefOutput
A memory-reference output parameter.
ParameterNone
ParameterValueInout
A value-type in/out parameter.
ParameterValueInput
A value-type input parameter.
ParameterValueOutput
A value-type output parameter.
TaSession
TaSessionBuilder
TeeParams
The TeeParams struct is used to manage the parameters for TEE commands.

Enums§

ErrorKind
A list specifying general categories of TEE error and its corresponding code in OP-TEE OS.
ParamIndex
ParamType
Enumerates the seven standard TEE parameter types.
ParameterAny
A type-erased parameter that dispatches to the correct concrete wrapper based on the runtime type tag.

Traits§

FromRawParameter
Convert a single raw parameter into a type-safe Rust wrapper.
FromRawParameters
Convert all four raw parameters at once into a typed tuple.
ParameterMemref
Shared buffer length for a memory-reference parameter.
ParameterMemrefRead
Read-only access to a memory-reference parameter’s buffer.
ParameterMemrefWrite
Write access to a memory-reference parameter’s buffer.
ParameterValueRead
Read-only access to the two u32 fields of a value parameter.
ParameterValueWrite
Write access to the two u32 fields of a value parameter.

Type Aliases§

ParametersAny
ParametersNone
RawParamType
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 the RawParamTypes bit-field.
RawParamTypes
Together with a RawParams array this describes the name and content of all four TEE parameters.
RawParams
Array of four raw TEE_Param unions.
Result
A specialized Result type 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.