Home
last modified time | relevance | path

Searched defs:Error (Results 1 – 25 of 30) sorted by relevance

12

/trusty/user/base/lib/storage/rust/src/
Dtransaction.rs22 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
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
137 pub fn get_size(&mut self, file: &SecureFile) -> Result<usize, Error> { in get_size() argument
147 pub fn set_size(&mut self, file: &mut SecureFile, size: usize) -> Result<(), Error> { in set_size() argument
[all …]
Dlib.rs187 pub fn new(port: Port, wait_for_port: bool) -> Result<Self, Error> { in new() argument
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
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
378 ) -> Result<&'buf [u8], Error> { in read_at() argument
402 pub fn write_all(&mut self, file: &mut SecureFile, buf: &[u8]) -> Result<(), Error> { in write_all() argument
414 ) -> Result<(), Error> { in write_all_impl() argument
440 ) -> Result<(), Error> { in write_at() argument
[all …]
/trusty/user/base/lib/tipc/rust/src/
Dserialization.rs16 type Error: Debug; typedef
19 fn serialize_bytes(&mut self, bytes: &'s [u8]) -> Result<Self::Ok, Self::Error>; in serialize_bytes()
28 unsafe fn serialize_as_bytes<T: Sized>(&mut self, obj: &'s T) -> Result<Self::Ok, Self::Error> { in serialize_as_bytes()
41 fn serialize_handle(&mut self, handle: &'s Handle) -> Result<Self::Ok, Self::Error>; in serialize_handle()
52 ) -> Result<S::Ok, S::Error>; in serialize()
59 ) -> Result<S::Ok, S::Error> { in serialize()
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
Dhandle.rs136 pub fn recv<T: Deserialize>(&self, buffer: &mut [u8]) -> Result<T, T::Error> { in recv() argument
384 type Error = TipcError; typedef
386 fn serialize_bytes(&mut self, bytes: &'a [u8]) -> Result<Self::Ok, Self::Error> { in serialize_bytes()
390 fn serialize_handle(&mut self, handle: &'a Handle) -> Result<Self::Ok, Self::Error> { in serialize_handle()
/trusty/user/app/sample/memref-test/rust/
Dmemref_test.rs140 ) -> Result<S::Ok, S::Error> { in serialize()
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()
206 type Error = TipcError; typedef
209 fn deserialize(_bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument
/trusty/user/app/keymint/
Dsecure_deletion_secret_manager.rs81 fn get_secure_deletion_secret_file_session(wait_on_port: bool) -> Result<Session, Error> { in get_secure_deletion_secret_file_session() argument
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
243 fn zero_entries(&mut self, begin: usize, end: usize) -> Result<(), Error> { in zero_entries() argument
258 fn finish_transaction(self) -> Result<(), Error> { in finish_transaction() argument
292 ) -> Result<RetrieveSecureDeletionSecretFileData, Error> { in get_factory_reset_secret_impl() argument
[all …]
Drpc.rs40 ) -> 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
Dkey_wrapper.rs45 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
Dsecure_storage_manager.rs70 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
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
234 ) -> Result<(), Error> { in provision_attestation_id_file() argument
293 fn get_file_contents(file_name: &str) -> Result<Option<Vec<u8>>, Error> { in get_file_contents() argument
[all …]
Dkeys.rs46 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
Dkeybox.rs43 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
Dffi_bindings.rs87 ) -> Result<S::Ok, S::Error> { in serialize()
111 type Error = TipcError; typedef
113 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument
Dipc_manager.rs73 type Error = TipcError; typedef
85 ) -> Result<S::Ok, S::Error> { in serialize()
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
227 fn can_provision(&self) -> Result<bool, Error> { in can_provision() argument
258 fn handle_message(&self, req_msg: TrustyPerformOpReq) -> Result<TrustyPerformOpRsp, Error> { in handle_message() argument
454 ) -> Result<TrustyPerformSecureOpRsp, Error> { in handle_message() argument
566 ) -> Result<(), Error> { in handle_port_connections() argument
701 ) -> Result<Vec<u8>, legacy::Error> { in get_configure_boot_patchlevel_message()
714 ) -> Result<Vec<u8>, legacy::Error> { in get_set_boot_params_message()
[all …]
/trusty/user/base/lib/system_state/rust/src/
Dlib.rs55 type Error = TipcError; typedef
57 fn try_from(value: u32) -> Result<SystemStateFlag, Self::Error> { in try_from()
90 type Error = TipcError; typedef
92 fn try_from(value: u64) -> Result<ProvisioningAllowedFlagValues, Self::Error> { in try_from()
156 ) -> Result<S::Ok, S::Error> { in serialize()
177 type Error = TipcError; typedef
182 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument
/trusty/user/base/lib/trusty-std/src/
Dclone_ext.rs28 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/base/lib/hwwsk/rust/src/
Dlib.rs70 ) -> Result<S::Ok, S::Error> { in serialize()
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()
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()
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()
[all …]
/trusty/user/app/secretkeeper/
Dstore.rs67 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
99 fn delete(&mut self, key: &[u8]) -> Result<(), Error> { in delete() argument
109 fn delete_all(&mut self) -> Result<(), Error> { in delete_all() argument
/trusty/user/base/lib/trusty-sys/src/
Derr.rs28 pub enum Error { enum
77 impl Error { implementation
87 impl From<c_long> for Error { implementation
/trusty/user/app/keymint/keys/
Dlegacy.rs46 ) -> Result<Vec<u8>, Error> { in build_derivation_info() argument
78 ) -> Result<crypto::aes::Key, Error> { in derive_kek() argument
95 ) -> Result<keyblob::PlaintextKeyBlob, Error> { in convert_key() argument
312 ) -> Result<keyblob::PlaintextKeyBlob, Error> { in convert_legacy_key() argument
316 fn delete_legacy_key(&mut self, keyblob: &[u8]) -> Result<(), Error> { in delete_legacy_key() argument
/trusty/user/base/lib/hwkey/rust/src/
Dlib.rs321 type Error = HwkeyError; typedef
332 type Error = HwkeyError; typedef
523 ) -> Result<S::Ok, S::Error> { in serialize()
546 ) -> Result<S::Ok, S::Error> { in serialize()
584 type Error = HwkeyError; typedef
586 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument
619 type Error = HwkeyError; typedef
623 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument
/trusty/user/app/keymint/secure_storage_manager/
Dsoftware.rs395 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/server/
Dservice_encryption_key.rs138 type Error = HwCryptoError; typedef
140 fn try_from(value: &ProtectedHeader) -> Result<EncryptionHeader, Self::Error> { in try_from()
192 type Error = HwCryptoError; typedef
194 fn try_from(value: &EncryptionHeader) -> Result<Header, Self::Error> { in try_from()
/trusty/user/base/lib/trusty-std/src/ffi/
Dc_str.rs166 type Error = AllocError; typedef
168 fn try_clone(&self) -> Result<Self, Self::Error> { in try_clone() argument
/trusty/user/base/lib/hwbcc/rust/src/
Dlib.rs85 ) -> Result<S::Ok, S::Error> { in serialize()
132 ) -> Result<S::Ok, S::Error> { in serialize()
158 type Error = HwBccError; typedef
161 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() argument
/trusty/user/app/sample/rust-hello-world/
Dlib.rs62 type Error = TipcError; typedef
93 ) -> Result<S::Ok, S::Error> { in serialize()

12