Searched refs:from_slice (Results 1 – 16 of 16) sorted by relevance
37 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 …]
172 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()
313 Self::from_slice(&payload) in validate_cose_signature_and_extract_payload()316 pub(crate) fn from_slice(data: &[u8]) -> Result<Self> { in from_slice() method317 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() method363 let value = Value::from_slice(data); in from_slice()
27 let cose_mac = CoseMac0::from_slice(maced_public_key)?; in validate_public_key()30 Ok(CoseKey::from_slice(&payload)?) in validate_public_key()
45 let cose_sign = CoseSign::from_slice(&csr.signed_csr_payload)?; in request_attestation()261 let service_vm = DiceChainEntryPayload::from_slice(&payload)?;
87 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
50 let value = Value::from_slice(data)?; in from_cbor_slice()89 let value = Value::from_slice(data)?; in from_cbor_slice()
84 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)?;
149 let microdroid_data = serde_cbor::from_slice(plaintext.as_slice())?; in read_microdroid_data()
218 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()
135 Value::from_slice(&cert).map_err(|e| { in fake_dice_artifacts_up_to_pvmfw()
51 value_to_array(Value::from_slice(data)?, context) in parse_value_array()
109 let fdt = libfdt::Fdt::from_slice(fdt)?; in try_main()
317 let hdr = match quiche::Header::from_slice(pkt_buf, CONN_ID_LEN) { in worker_thread()
989 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()
596 pub fn from_slice(fdt: &[u8]) -> Result<&Self> { in from_slice() method