Home
last modified time | relevance | path

Searched refs:from_raw (Results 1 – 4 of 4) sorted by relevance

/trusty/user/app/keymint/
Dkeys.rs153 fn from_raw(raw_context: &[u8]) -> Result<Self, Error> { in from_raw() method
230 let context = TrustyKekContext::from_raw(context)?; in root_kek()
378 let context1 = TrustyKekContext::from_raw(&context1.unwrap().to_raw().unwrap()).unwrap(); in kek_with_different_context_return_different_keys()
468 let ctx_1 = TrustyKekContext::from_raw(&[0; 0]); in deserializing_bad_kek_context_fails()
475 let ctx_2 = TrustyKekContext::from_raw(&ctx_raw); in deserializing_bad_kek_context_fails()
478 let ctx_3 = TrustyKekContext::from_raw(&ctx_raw); in deserializing_bad_kek_context_fails()
481 let ctx_4 = TrustyKekContext::from_raw(&ctx_raw); in deserializing_bad_kek_context_fails()
483 let ctx_5 = TrustyKekContext::from_raw(&[0; TrustyKekContext::SERIALIZED_SIZE]); in deserializing_bad_kek_context_fails()
495 let recovered_ctx = TrustyKekContext::from_raw(&original_ctx.to_raw().unwrap()).unwrap(); in test_kek_context_serialization()
498 let recovered_ctx = TrustyKekContext::from_raw(&original_ctx.to_raw().unwrap()).unwrap(); in test_kek_context_serialization()
/trusty/user/base/lib/tipc/rust/src/service/
Dhandle_set.rs64 handle: Handle::from_raw(rc as i32)?,
183 drop(Weak::from_raw(cookie)); in do_set_ctrl()
188 drop(Weak::from_raw(cookie)); in do_set_ctrl()
/trusty/user/base/lib/tipc/rust/src/
Dhandle.rs101 Self::from_raw(rc.try_into().or(Err(TipcError::InvalidHandle))?) in try_clone()
108 pub fn from_raw(fd: i32) -> crate::Result<Self> { in from_raw() method
Dservice.rs200 let weak = ManuallyDrop::new(Weak::from_raw(ptr.cast())); in from_opaque_ptr()
220 handle: Handle::from_raw(rc as i32)?, in try_new_port()
1163 let connection_handle = Handle::from_raw(rc)?; in handle_connect()