/trusty/user/base/lib/storage/rust/src/ |
D | transaction.rs | 1 use crate::{sys, DirIter, Error, OpenMode, SecureFile, Session}; 22 pub fn commit(self) -> Result<(), Error> { in commit() argument 29 pub fn discard(self) -> Result<(), Error> { in discard() argument 33 fn end_transaction(self, complete: bool) -> Result<(), Error> { in end_transaction() argument 37 let result = Error::check_return_code(unsafe { in end_transaction() 62 pub fn open_file(&mut self, name: &str, mode: OpenMode) -> Result<SecureFile, Error> { in open_file() argument 86 ) -> Result<&'buf [u8], Error> { in read_all() argument 109 ) -> Result<&'buf [u8], Error> { in read_at() argument 118 pub fn write_all(&mut self, file: &mut SecureFile, buf: &[u8]) -> Result<(), Error> { in write_all() argument 132 ) -> Result<(), Error> { in write_at() argument [all …]
|
D | lib.rs | 137 pub use trusty_sys::Error as ErrorCode; 187 pub fn new(port: Port, wait_for_port: bool) -> Result<Self, Error> { in new() argument 205 let handle = Error::check_non_negative(unsafe { trusty_sys::connect(port, flags) })?; in new() 234 pub fn open_file(&mut self, name: &str, mode: OpenMode) -> Result<SecureFile, Error> { in open_file() argument 253 ) -> Result<SecureFile, Error> { in open_file_impl() argument 277 Error::check_return_code(unsafe { in open_file_impl() 301 pub fn read<'buf>(&mut self, path: &str, buf: &'buf mut [u8]) -> Result<&'buf [u8], Error> { in read() argument 322 pub fn write(&mut self, path: &str, buf: &[u8]) -> Result<(), Error> { in write() argument 347 ) -> Result<&'buf [u8], Error> { in read_all() argument 353 return Err(Error::Code(ErrorCode::NotEnoughBuffer)); in read_all() [all …]
|
/trusty/user/base/lib/tipc/rust/src/ |
D | serialization.rs | 16 type Error: Debug; typedef 19 fn serialize_bytes(&mut self, bytes: &'s [u8]) -> Result<Self::Ok, Self::Error>; in serialize_bytes() argument 28 unsafe fn serialize_as_bytes<T: Sized>(&mut self, obj: &'s T) -> Result<Self::Ok, Self::Error> { in serialize_as_bytes() argument 41 fn serialize_handle(&mut self, handle: &'s Handle) -> Result<Self::Ok, Self::Error>; in serialize_handle() argument 52 ) -> Result<S::Ok, S::Error>; in serialize() argument 59 ) -> Result<S::Ok, S::Error> { in serialize() argument 69 type Error: From<TipcError> + Debug; typedef 96 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error>; in deserialize() argument 100 type Error = TipcError; typedef 104 fn deserialize(_bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument
|
D | err.rs | 21 use trusty_sys::{c_long, Error}; 65 SystemError(Error), 88 let sys_err: Error = rc.into(); in from_uapi() 90 Error::BadHandle => TipcError::InvalidHandle, in from_uapi()
|
/trusty/user/base/lib/hwbcc/rust/src/ |
D | err.rs | 20 use trusty_sys::Error; 31 System(Error), 40 impl From<Error> for HwBccError { 41 fn from(err: Error) -> Self { in from()
|
/trusty/user/app/sample/hwcryptohal/server/ |
D | helpers.rs | 36 type Error = hwcryptohal_common::err::HwCryptoError; 38 fn try_from(value: i64) -> Result<Self, Self::Error> { 47 type Error = coset::CoseError; 49 fn try_from(value: ciborium::value::Integer) -> Result<Self, Self::Error> {
|
/trusty/user/app/confirmationui/src/ |
D | trusty_confirmation_ui.cpp | 75 static ResponseCode teeuiError2ResponseCode(const teeui::Error& e) { in teeuiError2ResponseCode() 77 case teeui::Error::OK: in teeuiError2ResponseCode() 79 case teeui::Error::NotInitialized: in teeuiError2ResponseCode() 81 case teeui::Error::FaceNotLoaded: in teeuiError2ResponseCode() 83 case teeui::Error::CharSizeNotSet: in teeuiError2ResponseCode() 85 case teeui::Error::GlyphNotLoaded: in teeuiError2ResponseCode() 87 case teeui::Error::GlyphNotRendered: in teeuiError2ResponseCode() 89 case teeui::Error::GlyphNotExtracted: in teeuiError2ResponseCode() 91 case teeui::Error::UnsupportedPixelFormat: in teeuiError2ResponseCode() 93 case teeui::Error::OutOfBoundsDrawing: in teeuiError2ResponseCode() [all …]
|
/trusty/user/app/secretkeeper/ |
D | store.rs | 24 use secretkeeper_comm::data_types::error::Error; 47 Error::UnexpectedError 53 fn create_session() -> Result<Session, Error> { in create_session() 67 fn store(&mut self, key: &[u8], val: &[u8]) -> Result<(), Error> { in store() argument 79 fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Error> { in get() argument 84 Err(storage::Error::Code(trusty_sys::Error::NotFound)) => return Ok(None), in get() 99 fn delete(&mut self, key: &[u8]) -> Result<(), Error> { in delete() argument 104 Err(storage::Error::Code(trusty_sys::Error::NotFound)) => Ok(()), in delete() 109 fn delete_all(&mut self) -> Result<(), Error> { in delete_all() argument 127 Err(Error::UnexpectedError) in delete_all()
|
/trusty/user/base/lib/hwwsk/rust/src/ |
D | err.rs | 22 use trusty_sys::Error; 46 System(Error), 68 impl From<Error> for HwWskError { 69 fn from(err: Error) -> Self { in from()
|
D | lib.rs | 70 ) -> Result<S::Ok, S::Error> { in serialize() argument 82 type Error = HwWskError; typedef 85 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument 128 ) -> Result<S::Ok, S::Error> { in serialize() argument 142 type Error = HwWskError; typedef 145 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument 175 ) -> Result<S::Ok, S::Error> { in serialize() argument 181 type Error = HwWskError; typedef 184 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument 203 ) -> Result<S::Ok, S::Error> { in serialize() argument [all …]
|
/trusty/user/base/lib/hwkey/rust/src/ |
D | err.rs | 22 use trusty_sys::Error; 35 System(Error), 61 impl From<Error> for HwkeyError { 62 fn from(e: Error) -> Self { in from()
|
/trusty/user/app/sample/memref-test/rust/ |
D | memref_test.rs | 140 ) -> Result<S::Ok, S::Error> { in serialize() argument 159 type Error = TipcError; typedef 162 fn deserialize(_bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument 175 type Error = TipcError; typedef 178 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument 194 ) -> Result<S::Ok, S::Error> { in serialize() argument 206 type Error = TipcError; typedef 209 fn deserialize(_bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument
|
/trusty/user/base/lib/trusty-std/src/ |
D | clone_ext.rs | 28 type Error; typedef 43 fn try_clone(&self) -> Result<Self, Self::Error>; in try_clone() argument 47 type Error = AllocError; typedef 50 fn try_clone(&self) -> Result<Self, Self::Error> { in try_clone() argument 129 type Error = AllocError; typedef 132 fn try_clone(&self) -> Result<Self, Self::Error> { in try_clone() argument
|
/trusty/user/app/keymint/ |
D | rpc.rs | 21 use kmr_common::{crypto, rpc_err, vec_try, Error}; 40 ) -> Result<Vec<u8>, Error> { in derive_bytes_from_hbk() argument 53 fn get_dice_info<'a>(&self, _test_mode: rpc::TestMode) -> Result<DiceInfo, Error> { in get_dice_info() argument 75 ) -> Result<Vec<u8>, Error> { in sign_data() argument 87 ) -> Result<Vec<u8>, Error> { in sign_data_in_cose_sign1() argument
|
D | key_wrapper.rs | 23 Error, 35 fn hwwsk_session() -> Result<Handle, Error> { in hwwsk_session() 45 fn ephemeral_wrap(&self, key_material: &KeyMaterial) -> Result<Vec<u8>, Error> { in ephemeral_wrap() argument 80 ) -> Result<crypto::KeyMaterial, Error> { in create_storage_key() argument 133 ) -> Result<crypto::KeyMaterial, Error> { in generate_key() argument 145 ) -> Result<(crypto::KeyMaterial, KeySizeInBits), Error> { in import_key() argument 161 ) -> Result<Box<dyn crypto::EmittingOperation>, Error> { in begin() argument 175 ) -> Result<Box<dyn crypto::AadOperation>, Error> { in begin_aead() argument
|
D | secure_deletion_secret_manager.rs | 23 km_err, Error, 81 fn get_secure_deletion_secret_file_session(wait_on_port: bool) -> Result<Session, Error> { in get_secure_deletion_secret_file_session() argument 92 fn delete_secure_deletion_secret_file() -> Result<(), Error> { in delete_secure_deletion_secret_file() 98 Err(storage_session::Error::Code(trusty_sys::Error::NotFound)) => Ok(()), in delete_secure_deletion_secret_file() 119 fn open_or_create(session: &'a mut Session) -> Result<SecureDeletionSecretFile<'a>, Error> { in open_or_create() argument 137 ) -> Result<&'buf [u8], Error> { in read_block() argument 164 fn find_empty_slot(&mut self, is_upgrade: bool) -> Result<Option<usize>, Error> { in find_empty_slot() argument 203 fn write_block(&mut self, start: usize, buffer: &[u8]) -> Result<(), Error> { in write_block() argument 214 fn get_file_size(&mut self) -> Result<usize, Error> { in get_file_size() argument 231 fn resize(&mut self, new_size: usize) -> Result<(), Error> { in resize() argument [all …]
|
D | keybox.rs | 19 use kmr_common::{km_err, vec_try, Error}; 43 pub(crate) fn keybox_unwrap(&self, wrapped_keybox: &[u8]) -> Result<Vec<u8>, Error> { in keybox_unwrap() argument 59 pub(crate) fn keybox_unwrap(wrapped_keybox: &[u8]) -> Result<Vec<u8>, Error> { in keybox_unwrap() argument
|
D | secure_storage_manager.rs | 25 Error, 70 fn new(file_name: &str) -> Result<Self, Error> { in new() argument 81 fn write_all(&mut self, data: &[u8]) -> Result<(), Error> { in write_all() argument 116 fn create_attestation_id_file() -> Result<OpenSecureFile, Error> { in create_attestation_id_file() 121 fn create_attestation_key_file(algorithm: SigningAlgorithm) -> Result<OpenSecureFile, Error> { in create_attestation_key_file() argument 129 ) -> Result<(), Error> { in write_protobuf_to_attestation_key_file() argument 144 ) -> Result<(), Error> { in set_wrapped_attestation_key() argument 154 ) -> Result<(), Error> { in provision_attestation_key_file() argument 167 ) -> Result<(), Error> { in append_attestation_cert_chain() argument 200 pub(crate) fn clear_attestation_cert_chain(algorithm: SigningAlgorithm) -> Result<(), Error> { in clear_attestation_cert_chain() argument [all …]
|
D | ipc_manager.rs | 33 Error, 73 type Error = TipcError; typedef 85 ) -> Result<S::Ok, S::Error> { in serialize() argument 93 ) -> Result<SigningAlgorithm, Error> { in keymaster_algorithm_to_signing_algorithm() argument 118 fn handle_message(&self, req_data: &[u8]) -> Result<Vec<Vec<u8>>, Error> { in handle_message() argument 146 Error::Hal(_, err_msg) => { in on_message() 150 Error::Alloc(err_msg) => { in on_message() 164 fn get_system_state_provisioning_flag() -> Result<ProvisioningAllowedFlagValues, Error> { in get_system_state_provisioning_flag() 187 fn provisioning_allowed() -> Result<bool, Error> { in provisioning_allowed() 195 fn provisioning_allowed_at_boot() -> Result<bool, Error> { in provisioning_allowed_at_boot() [all …]
|
D | keys.rs | 22 use kmr_common::{crypto, km_err, vec_try_with_capacity, Error}; 46 fn deserialize_u32(bytes: &[u8], error_message: &str) -> Result<u32, Error> { in deserialize_u32() argument 55 fn os_rollback_version_to_u32(os_rollback_version: OsRollbackVersion) -> Result<u32, Error> { in os_rollback_version_to_u32() argument 120 ) -> Result<Self, Error> { in new() argument 153 fn from_raw(raw_context: &[u8]) -> Result<Self, Error> { in from_raw() argument 201 fn to_raw(&self) -> Result<Vec<u8>, Error> { in to_raw() argument 229 fn root_kek(&self, context: &[u8]) -> Result<crypto::OpaqueOr<crypto::hmac::Key>, Error> { in root_kek() argument 263 fn kek_context(&self) -> Result<Vec<u8>, Error> { in kek_context() argument 268 fn kak(&self) -> Result<crypto::OpaqueOr<crypto::aes::Key>, Error> { in kak() argument 282 fn timestamp_token_mac_input(&self, token: &TimeStampToken) -> Result<Vec<u8>, Error> { in timestamp_token_mac_input() argument
|
/trusty/user/base/lib/system_state/rust/src/ |
D | lib.rs | 55 type Error = TipcError; typedef 57 fn try_from(value: u32) -> Result<SystemStateFlag, Self::Error> { in try_from() argument 90 type Error = TipcError; typedef 92 fn try_from(value: u64) -> Result<ProvisioningAllowedFlagValues, Self::Error> { in try_from() argument 156 ) -> Result<S::Ok, S::Error> { in serialize() argument 177 type Error = TipcError; typedef 182 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument
|
/trusty/user/app/confirmationui/test/ |
D | main.cpp | 105 teeui::Color color) -> teeui::Error { in TEST_P() 110 return teeui::Error::OutOfBoundsDrawing; in TEST_P() 118 return teeui::Error::OK; in TEST_P() 122 teeui::Error rc = layout->drawElements(drawPixel); in TEST_P() 123 EXPECT_EQ(rc.code(), teeui::Error::OK, "drawElements %d", i); in TEST_P()
|
/trusty/user/base/lib/trusty-sys/src/ |
D | err.rs | 28 pub enum Error { enum 77 impl Error { impl 87 impl From<c_long> for Error { implementation 89 use Error::*; in from()
|
/trusty/user/app/keymint/secure_storage_manager/ |
D | software.rs | 7 wire::keymint::EcCurve, Error, 395 fn signing_key(&self, key_type: SigningKeyType) -> Result<KeyMaterial, Error> { in signing_key() argument 402 fn cert_chain(&self, key_type: SigningKeyType) -> Result<Vec<keymint::Certificate>, Error> { in cert_chain() argument
|
/trusty/user/app/sample/hwcryptohal/common/ |
D | err.rs | 46 KmError(kmr_common::Error), 63 impl From<kmr_common::Error> for HwCryptoError { 64 fn from(e: kmr_common::Error) -> Self { in from()
|