/optee_rust/optee-utee/src/ |
A D | object.rs | 26 raw: raw::TEE_Attribute, field 31 pub fn raw(&self) -> raw::TEE_Attribute { in raw() method 39 Self { raw: attr.raw() } in from() 46 Self { raw: attr.raw() } in from() 53 raw: raw::TEE_Attribute, field 64 let raw = raw::TEE_Attribute { in new_ref() 74 raw: raw, in new_ref() 107 raw: raw::TEE_Attribute, field 117 let raw = raw::TEE_Attribute { in new_value() 153 raw: raw::TEE_ObjectInfo, field [all …]
|
A D | net.rs | 18 use optee_utee_sys as raw; 24 pub handle: raw::TEE_iSocketHandle, 53 raw::TEE_ERROR_CANCEL => { in connect_with_ip_version() 109 ((*raw::TEE_tcpSocket).recv)( in read() 113 raw::TEE_TIMEOUT_INFINITE, in read() 119 raw::TEE_ERROR_CANCEL => { in read() 151 ((*raw::TEE_tcpSocket).send)( in write() 161 raw::TEE_ERROR_CANCEL => { in write() 194 pub handle: raw::TEE_iSocketHandle, 289 raw::TEE_ERROR_CANCEL => { in read() [all …]
|
A D | error.rs | 18 use optee_utee_sys as raw; 184 raw::TEE_ERROR_GENERIC => ErrorKind::Generic, in kind() 186 raw::TEE_ERROR_CANCEL => ErrorKind::Cancel, in kind() 188 raw::TEE_ERROR_EXCESS_DATA => ErrorKind::ExcessData, in kind() 189 raw::TEE_ERROR_BAD_FORMAT => ErrorKind::BadFormat, in kind() 191 raw::TEE_ERROR_BAD_STATE => ErrorKind::BadState, in kind() 195 raw::TEE_ERROR_NO_DATA => ErrorKind::NoData, in kind() 197 raw::TEE_ERROR_BUSY => ErrorKind::Busy, in kind() 199 raw::TEE_ERROR_SECURITY => ErrorKind::Security, in kind() 202 raw::TEE_ERROR_OVERFLOW => ErrorKind::Overflow, in kind() [all …]
|
A D | parameter.rs | 19 use optee_utee_sys as raw; 37 raw: *mut raw::Value, field 69 raw: *mut raw::Memref, field 85 pub fn raw(&mut self) -> *mut raw::Memref { in raw() method 86 self.raw in raw() 95 pub raw: *mut raw::TEE_Param, field 102 raw: ptr, in from_raw() 111 raw: &mut (*self.raw).value, in as_value() 124 raw: &mut (*self.raw).memref, in as_memref() 133 pub fn raw(&self) -> *mut raw::TEE_Param { in raw() method [all …]
|
A D | crypto_op.rs | 19 use optee_utee_sys as raw; 45 raw: raw::TEE_OperationInfo, field 72 pub fn from_raw(raw: raw::TEE_OperationInfo) -> Self { in from_raw() 73 Self { raw } in from_raw() 78 self.raw.keySize in key_size() 117 raw: *mut raw::TEE_OperationInfoMultiple, field 147 pub fn raw(&self) -> *mut raw::TEE_OperationInfoMultiple { in raw() method 148 self.raw in raw() 159 raw: *mut raw::TEE_OperationHandle, field 163 fn from_raw(raw: *mut raw::TEE_OperationHandle) -> OperationHandle { in from_raw() [all …]
|
A D | time.rs | 19 use optee_utee_sys as raw; 57 raw::TEE_GetSystemTime(self as *mut _ as _); in system_time() 83 match unsafe { raw::TEE_Wait(timeout) } { in wait() 84 raw::TEE_SUCCESS => Ok(()), in wait() 114 match unsafe { raw::TEE_GetTAPersistentTime(self as *mut _ as _) } { in ta_time() 115 raw::TEE_SUCCESS => Ok(()), in ta_time() 131 match unsafe { raw::TEE_SetTAPersistentTime(self as *const _ as _) } { in set_ta_time() 132 raw::TEE_SUCCESS => Ok(()), in set_ta_time() 145 raw::TEE_GetREETime(self as *mut _ as _); in ree_time()
|
A D | arithmetical.rs | 19 use optee_utee_sys as raw; 54 raw::TEE_SUCCESS => Ok(()), in convert_from_octet_string() 69 raw::TEE_SUCCESS => { in convert_to_octet_string() 84 raw::TEE_SUCCESS => Ok(short_val), in convert_to_s32() 158 raw::TEE_BigIntDiv( in divide() 177 raw::TEE_BigIntAddMod( in add_mod() 190 raw::TEE_BigIntSubMod( in sub_mod() 203 raw::TEE_BigIntMulMod( in mul_mod() 244 raw::TEE_BigIntConvertToFMM( in convert_from_big_int_fmm() 303 raw::TEE_BigIntConvertToFMM( in convert_from_big_int() [all …]
|
A D | uuid.rs | 20 use optee_utee_sys as raw; 27 raw: raw::TEE_UUID, field 89 let raw_uuid = raw::TEE_UUID { 95 Self { raw: raw_uuid } 99 pub fn as_raw_ptr(&self) -> *const raw::TEE_UUID { in as_raw_ptr() 100 &self.raw in as_raw_ptr() 109 self.raw.timeLow, in fmt() 110 self.raw.timeMid, in fmt() 111 self.raw.timeHiAndVersion, in fmt() 112 hex::encode(self.raw.clockSeqAndNode) in fmt()
|
A D | trace.rs | 19 use optee_utee_sys as raw; 42 raw::trace_set_level(level); in set_level() 47 unsafe { raw::trace_get_level() } in get_level() 54 raw::_utee_log(buf.as_ptr() as *const libc::c_void, buf.len()); in write()
|
A D | extension.rs | 19 use optee_utee_sys as raw; 33 raw::tee_invoke_supp_plugin( in invoke() 42 raw::TEE_SUCCESS => { in invoke()
|
/optee_rust/optee-teec/src/ |
A D | parameter.rs | 33 raw: raw::TEEC_Value, field 41 let raw = raw::TEEC_Value { a, b }; in new() 58 raw::TEEC_Parameter { value: self.raw } in into_raw() 63 raw: unsafe { raw.value }, in from_raw() 79 raw in into_raw() 95 raw: raw::TEEC_TempMemoryReference, field 105 let raw = raw::TEEC_TempMemoryReference { in new_input() 110 raw, in new_input() 120 let raw = raw::TEEC_TempMemoryReference { in new_output() 138 raw::TEEC_Parameter { tmpref: self.raw } in into_raw() [all …]
|
A D | context.rs | 21 use optee_teec_sys as raw; 27 raw: raw::TEEC_Context, field 39 Context::new_raw(0, true).map(|raw| Context { raw }) in new() 49 pub fn new_raw(fd: libc::c_int, reg_mem: bool) -> Result<raw::TEEC_Context> { in new_raw() 50 let mut raw_ctx = raw::TEEC_Context { fd, reg_mem }; in new_raw() 52 match raw::TEEC_InitializeContext(ptr::null_mut() as *mut libc::c_char, &mut raw_ctx) { in new_raw() 53 raw::TEEC_SUCCESS => Ok(raw_ctx), in new_raw() 67 pub fn as_mut_raw_ptr(&mut self) -> *mut raw::TEEC_Context { in as_mut_raw_ptr() 68 &mut self.raw in as_mut_raw_ptr() 116 raw::TEEC_FinalizeContext(&mut self.raw); in drop()
|
A D | session.rs | 19 use optee_teec_sys as raw; 45 raw: raw::TEEC_Session, field 56 let mut raw_session = raw::TEEC_Session { in new() 63 None => ptr::null_mut() as *mut raw::TEEC_Operation, in new() 66 match raw::TEEC_OpenSession( in new() 75 raw::TEEC_SUCCESS => Ok(Self { raw: raw_session, _marker: marker::PhantomData }), in new() 83 &mut self.raw in as_mut_raw_ptr() 94 match raw::TEEC_InvokeCommand( in invoke_command() 95 &mut self.raw, in invoke_command() 100 raw::TEEC_SUCCESS => Ok(()), in invoke_command() [all …]
|
A D | error.rs | 18 use optee_teec_sys as raw; 148 raw::TEEC_ERROR_GENERIC => ErrorKind::Generic, in kind() 150 raw::TEEC_ERROR_CANCEL => ErrorKind::Cancel, in kind() 152 raw::TEEC_ERROR_EXCESS_DATA => ErrorKind::ExcessData, in kind() 153 raw::TEEC_ERROR_BAD_FORMAT => ErrorKind::BadFormat, in kind() 155 raw::TEEC_ERROR_BAD_STATE => ErrorKind::BadState, in kind() 159 raw::TEEC_ERROR_NO_DATA => ErrorKind::NoData, in kind() 161 raw::TEEC_ERROR_BUSY => ErrorKind::Busy, in kind() 163 raw::TEEC_ERROR_SECURITY => ErrorKind::Security, in kind() 164 raw::TEEC_ERROR_SHORT_BUFFER => ErrorKind::ShortBuffer, in kind() [all …]
|
A D | operation.rs | 19 use optee_teec_sys as raw; 27 pub raw: raw::TEEC_Operation, field 36 let mut raw_op: raw::TEEC_Operation = unsafe { mem::zeroed() }; in new() 47 raw: raw_op, in new() 55 pub fn as_mut_raw_ptr(&mut self) -> *mut raw::TEEC_Operation { in as_mut_raw_ptr() 56 &mut self.raw in as_mut_raw_ptr() 60 let (f0, f1, f2, f3) = ParamTypes::from(self.raw.paramTypes).into_flags(); in parameters() 62 A::from_raw(self.raw.params[0], f0), in parameters() 63 B::from_raw(self.raw.params[1], f1), in parameters() 64 C::from_raw(self.raw.params[2], f2), in parameters() [all …]
|
A D | uuid.rs | 20 use optee_teec_sys as raw; 28 raw: raw::TEEC_UUID, field 90 let raw_uuid = raw::TEEC_UUID { 96 Self { raw: raw_uuid } 100 pub fn as_raw_ptr(&self) -> *const raw::TEEC_UUID { in as_raw_ptr() 101 &self.raw in as_raw_ptr() 110 self.raw.timeLow, in fmt() 111 self.raw.timeMid, in fmt() 112 self.raw.timeHiAndVersion, in fmt() 113 hex::encode(self.raw.clockSeqAndNode) in fmt()
|
A D | extension.rs | 18 use optee_teec_sys as raw; 25 pub uuid: raw::TEEC_UUID,
|
/optee_rust/examples/serde-rs/ta/src/ |
A D | main.rs | 70 unsafe { (*p.raw()).size = len as u32 }; in invoke_command()
|
/optee_rust/docs/ |
A D | overview-of-optee-rust-examples.md | 28 | secure_storage-rs | `1cd6d392-bdab-11eb-9082-abc902ac5cd4` | Read / write / delete raw…
|