Home
last modified time | relevance | path

Searched refs:from_slice (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Virtualization/libs/libfdt/tests/
Dapi_test.rs37 let fdt = Fdt::from_slice(&data).unwrap(); in retrieving_memory_from_fdt_with_one_memory_range_succeeds()
49 let fdt = Fdt::from_slice(&data).unwrap(); in retrieving_memory_from_fdt_with_multiple_memory_ranges_succeeds()
63 let fdt = Fdt::from_slice(&data).unwrap(); in retrieving_first_memory_from_fdt_with_empty_memory_range_fails()
73 let fdt = Fdt::from_slice(&data).unwrap(); in retrieving_memory_from_fdt_with_no_memory_node_fails()
82 let fdt = Fdt::from_slice(&data).unwrap(); in node_name()
98 let fdt = Fdt::from_slice(&data).unwrap(); in node_subnodes()
110 let fdt = Fdt::from_slice(&data).unwrap(); in node_properties()
131 let fdt = Fdt::from_slice(&data).unwrap(); in node_supernode_at_depth()
176 let fdt = Fdt::from_slice(&data).unwrap(); in max_phandle()
185 let fdt = Fdt::from_slice(&data).unwrap(); in node_with_phandle()
[all …]
/packages/modules/Virtualization/service_vm/client_vm_csr/src/
Dlib.rs172 let cose_sign = CoseSign::from_slice(&csr.signed_csr_payload).unwrap(); in csr_and_private_key_have_correct_format()
191 let attestation_public_key = CoseKey::from_slice(&csr_payload.public_key).unwrap(); in csr_and_private_key_have_correct_format()
216 let r = BigNum::from_slice(&signature[..coord_bytes])?; in ecdsa_verify_cose()
217 let s = BigNum::from_slice(&signature[coord_bytes..])?; in ecdsa_verify_cose()
248 .map(|v| BigNum::from_slice(&v[..]).unwrap()) in get_label_value_as_bignum()
/packages/modules/Virtualization/service_vm/requests/src/
Ddice.rs313 Self::from_slice(&payload) in validate_cose_signature_and_extract_payload()
316 pub(crate) fn from_slice(data: &[u8]) -> Result<Self> { in from_slice() method
317 let entries = value_to_map(Value::from_slice(data)?, "DiceChainEntryPayload")?; in from_slice()
325 CoseKey::from_slice(&subject_public_key)?.try_into()?; in from_slice()
340 let config_descriptor = ConfigDescriptor::from_slice(&config_descriptor)?; in from_slice()
362 fn from_slice(data: &[u8]) -> Result<Self> { in from_slice() method
363 let value = Value::from_slice(data); in from_slice()
Dpub_key.rs27 let cose_mac = CoseMac0::from_slice(maced_public_key)?; in validate_public_key()
30 Ok(CoseKey::from_slice(&payload)?) in validate_public_key()
Dclient_vm.rs45 let cose_sign = CoseSign::from_slice(&csr.signed_csr_payload)?; in request_attestation()
261 let service_vm = DiceChainEntryPayload::from_slice(&payload)?;
/packages/modules/Virtualization/libs/bssl/src/
Dec_key.rs87 let cose_key = CoseKey::from_slice(cose_key).map_err(|e| { in from_cose_public_key_slice()
124 let x = BigNum::from_slice(x)?; in from_cose_public_key()
125 let y = BigNum::from_slice(y)?; in from_cose_public_key()
381 let mut r = BigNum::from_slice(&signature[..coord_bytes])?; in load_from_cose()
382 let mut s = BigNum::from_slice(&signature[coord_bytes..])?; in load_from_cose()
554 fn from_slice(x: &[u8]) -> Result<Self> { in from_slice() method
/packages/modules/Virtualization/service_vm/comm/src/
Dcsr.rs50 let value = Value::from_slice(data)?; in from_cbor_slice()
89 let value = Value::from_slice(data)?; in from_cbor_slice()
/packages/modules/Virtualization/microdroid_manager/src/
Dvm_secret.rs84 let mut key = CoseKey::from_slice(&key)?; in get_secretkeeper_identity()
245 let store_response = ResponsePacket::from_slice(&store_response).map_err(anyhow_err)?;
264 let get_response = ResponsePacket::from_slice(&get_response).map_err(anyhow_err)?;
Dinstance.rs149 let microdroid_data = serde_cbor::from_slice(plaintext.as_slice())?; in read_microdroid_data()
/packages/modules/Virtualization/rialto/tests/
Dtest.rs218 let cose_mac = CoseMac0::from_slice(maced_public_key)?; in check_certificate_for_client_vm()
235 let cose_sign = CoseSign::from_slice(&csr.signed_csr_payload)?; in check_certificate_for_client_vm()
/packages/modules/Virtualization/service_vm/fake_chain/src/
Dservice_vm.rs135 Value::from_slice(&cert).map_err(|e| { in fake_dice_artifacts_up_to_pvmfw()
/packages/modules/Virtualization/libs/cborutil/src/
Dlib.rs51 value_to_array(Value::from_slice(data)?, context) in parse_value_array()
/packages/modules/Virtualization/rialto/src/
Dmain.rs109 let fdt = libfdt::Fdt::from_slice(fdt)?; in try_main()
/packages/modules/DnsResolver/doh/tests/doh_frontend/src/
Ddns_https_frontend.rs317 let hdr = match quiche::Header::from_slice(pkt_buf, CONN_ID_LEN) { in worker_thread()
/packages/modules/Virtualization/pvmfw/src/
Dfdt.rs989 let vm_ref_dt = Fdt::from_slice(vm_ref_dt).map_err(|e| { in sanitize_device_tree()
1194 let backup_fdt = Fdt::from_slice(backup.as_slice()).unwrap(); in modify_for_next_stage()
/packages/modules/Virtualization/libs/libfdt/src/
Dlib.rs596 pub fn from_slice(fdt: &[u8]) -> Result<&Self> { in from_slice() method