• Home
  • Raw
  • Download

Lines Matching refs:Ok

345                 Ok(Blob { flags, value: BlobValue::Generic(value.to_vec()) })  in new_from_stream()
348 Ok(Blob { flags, value: BlobValue::Characteristics(value.to_vec()) }) in new_from_stream()
351 Ok(Blob { flags, value: BlobValue::CharacteristicsCache(value.to_vec()) }) in new_from_stream()
353 (blob_types::SUPER_KEY, _, Some(salt)) => Ok(Blob { in new_from_stream()
363 (blob_types::SUPER_KEY_AES256, _, Some(salt)) => Ok(Blob { in new_from_stream()
373 (blob_types::KM_BLOB, true, _) => Ok(Blob { in new_from_stream()
381 (blob_types::KM_BLOB, false, _) => Ok(Blob { in new_from_stream()
416 BlobValue::Encrypted { iv, tag, data } => Ok(Blob { in new_from_stream_decrypt_with()
423 BlobValue::PwEncrypted { iv, tag, data, salt, key_size } => Ok(Blob { in new_from_stream_decrypt_with()
430 _ => Ok(blob), in new_from_stream_decrypt_with()
541 if let Ok(p) = param { in read_key_parameters()
546 Ok(params) in read_key_parameters()
560 None => return Ok(Vec::new()), in read_characteristics_file()
592 Ok(hw_list.into_iter().flatten().chain(sw_list).collect()) in read_characteristics_file()
623 return Ok(None); in read_km_blob_file()
627 Ok(Some((blob, prefix.to_string()))) in read_km_blob_file()
632 Ok(file) => file, in read_generic_blob()
634 ErrorKind::NotFound => return Ok(None), in read_generic_blob()
639 Ok(Some(Self::new_from_stream(&mut file).context("In read_generic_blob.")?)) in read_generic_blob()
646 None => return Ok(None), in read_legacy_keystore_entry()
652 Ok(blob.and_then(|blob| match blob.value { in read_legacy_keystore_entry()
665 None => return Ok(()), in remove_legacy_keystore_entry()
670 ErrorKind::NotFound => return Ok(()), in remove_legacy_keystore_entry()
687 Ok(dir) => dir, in list_legacy_keystore_entries_for_uid()
689 ErrorKind::NotFound => return Ok(Default::default()), in list_legacy_keystore_entries_for_uid()
715 Ok(result) in list_legacy_keystore_entries_for_uid()
740 if let Ok(uid) = v[0..sep_pos].parse::<u32>() { in list_legacy_keystore_entries_for_user()
749 Ok(result) in list_legacy_keystore_entries_for_user()
814 return Ok(false); in is_empty()
817 Ok(true) in is_empty()
826 return Ok(true); in is_empty_user()
828 Ok(Self::with_retry_interrupted(|| user_path.read_dir()) in is_empty_user()
850 Ok(dir) => dir, in list_user()
852 ErrorKind::NotFound => return Ok(Default::default()), in list_user()
868 Ok(result) in list_user()
884 if let Ok(uid) = v[0..sep_pos].parse::<u32>() { in list_keystore_entries_for_user()
893 Ok(result) in list_keystore_entries_for_user()
919 Ok(result) in list_keystore_entries_for_uid()
928 Ok(v) => return Ok(v), in with_retry_interrupted()
988 Ok(something_was_deleted) in remove_keystore_entry()
999 Ok(()) in remove_user_dir_if_empty()
1082 Ok((km_blob, user_cert, ca_cert)) in load_by_uid_alias()
1124 Ok(blob) in load_super_key()
1195 Ok(d) => d, in decode_encode_alias_test()
1225 Ok(()) in read_golden_key_blob_test()
1406 Ok(()) in test_legacy_blobs()
1416 Ok(()) in list_non_existing_user()
1426 Ok(()) in list_legacy_keystore_entries_on_non_existing_user()