/aosp_15_r20/packages/modules/Virtualization/libs/libservice_vm_requests/src/ |
D | dice.rs | 292 pub(crate) authority_hash: [u8; HASH_SIZE], field 334 let authority_hash = in from_slice() localVariable 336 builder.authority_hash(authority_hash)?; in from_slice() 428 pub(crate) authority_hash: Vec<u8>, field 450 builder.authority_hash(value_to_bytes(value, "SubComponent authority_hash")?)? in try_from() 467 authority_hash: OnceCell<Vec<u8>>, field 483 fn authority_hash(&mut self, authority_hash: Vec<u8>) -> Result<()> { in authority_hash() method 484 set_once(&self.authority_hash, authority_hash, "SubComponent authority_hash") in authority_hash() 491 let authority_hash = take_value(&mut self.authority_hash, "SubComponent authority_hash")?; in build() localVariable 492 Ok(SubComponent { name, version, code_hash, authority_hash }) in build() [all …]
|
D | cert.rs | 92 authority_hash: &'a [u8], field 101 authority_hash: &sub_component.authority_hash, in new()
|
D | client_vm.rs | 213 if expected_kernel_authority_hash(service_vm_entry)? == kernel.authority_hash { in validate_kernel_authority_hash() 262 Ok(service_vm.authority_hash)
|
/aosp_15_r20/tools/security/remote_provisioning/hwtrust/src/dice/ |
H A D | entry.rs | 32 authority_hash: Vec<u8>, field 82 pub fn authority_hash(&self) -> &[u8] { in authority_hash() method 83 &self.authority_hash in authority_hash() 107 writeln!(f, "Authority Hash: {}", hex::encode(&self.authority_hash))?; in fmt() 131 debug.field("Authority Hash", &hex::encode(&self.authority_hash)); in fmt() 160 authority_hash: Default::default(), in with_subject_public_key() 233 pub fn authority_hash(mut self, authority_hash: Vec<u8>) -> Self { in authority_hash() method 234 self.0.authority_hash = authority_hash; in authority_hash() 411 .authority_hash(vec![2; 64]) in payload_builder_valid_512_bit_hashes() 421 .authority_hash(vec![2; 48]) in payload_builder_valid_384_bit_hashes() [all …]
|
/aosp_15_r20/packages/modules/Virtualization/guest/microdroid_manager/src/ |
D | dice.rs | 50 let authority_hash = authority_hash_ctx.finish(); in dice_derivation() localVariable 61 dice.derive(code_hash, &config_descriptor, authority_hash, debuggable, hidden) in dice_derivation() 91 authority_hash: Vec<u8>, field 100 4 => Value::Bytes(self.authority_hash), in into_value() 109 authority_hash: apk.cert_hash.clone(), in for_apk() 120 authority_hash: sha512(&apex.public_key).to_vec(), in for_apex() 223 authority_hash: vec![17], in payload_metadata_with_subcomponents_formats_correctly() 229 authority_hash: vec![19, 20], in payload_metadata_with_subcomponents_formats_correctly()
|
/aosp_15_r20/packages/modules/Virtualization/libs/libservice_vm_fake_chain/src/ |
D | client_vm.rs | 72 pub authority_hash: Vec<u8>, field 81 4 => Value::Bytes(self.authority_hash.clone()), in to_value() 107 let authority_hash = service_vm::AUTHORITY_HASH_SERVICE_VM; in fake_client_vm_dice_artifacts() localVariable 111 authority_hash, in fake_client_vm_dice_artifacts() 167 authority_hash: APK1_AUTHORITY_HASH.to_vec(), in fake_sub_components() 173 authority_hash: APEX1_AUTHORITY_HASH.to_vec(), in fake_sub_components()
|
/aosp_15_r20/trusty/user/base/lib/hwbcc/common/ |
D | swbcc.c | 45 uint8_t authority_hash[DICE_HASH_SIZE]; member 145 const uint8_t authority_hash[DICE_HASH_SIZE], in swbcc_glob_init() 155 memcpy(srv_state.dice_root.child_node_info.authority_hash, authority_hash, in swbcc_glob_init() 532 memcpy(input_values.authority_hash, in swbcc_get_dice_artifacts() 533 srv_state.dice_root.child_node_info.authority_hash, in swbcc_get_dice_artifacts() 534 sizeof(srv_state.dice_root.child_node_info.authority_hash)); in swbcc_get_dice_artifacts()
|
/aosp_15_r20/external/open-dice/src/ |
H A D | cbor_multialg_op_test.cc | 148 input_values.authority_hash); in TEST() 186 input_values.authority_hash); in TEST() 225 input_values.authority_hash); in TEST() 278 input_values.authority_hash); in TEST() 329 input_values.authority_hash); in TEST() 381 input_values.authority_hash); in TEST() 558 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 590 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 622 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 654 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() [all …]
|
H A D | boringssl_cert_op.c | 42 ASN1_OCTET_STRING* authority_hash; member 54 ASN1_EXP_OPT(DiceExtensionAsn1, authority_hash, ASN1_OCTET_STRING, 4), 336 asn1->authority_hash = ASN1_OCTET_STRING_new(); in GetDiceExtensionData() 337 if (!asn1->authority_hash) { in GetDiceExtensionData() 408 if (!ASN1_OCTET_STRING_set(asn1->authority_hash, input_values->authority_hash, in GetDiceExtensionData()
|
H A D | cbor_p256_cert_op_test.cc | 73 input_values.authority_hash); in TEST() 124 input_values.authority_hash); in TEST() 201 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 231 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST()
|
H A D | mbedtls_ops_test.cc | 66 input_values.authority_hash); in TEST() 113 input_values.authority_hash); in TEST() 189 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 220 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST()
|
H A D | boringssl_ed25519_ops_test.cc | 65 input_values.authority_hash); in TEST() 112 input_values.authority_hash); in TEST() 188 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 218 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST()
|
H A D | cbor_p384_cert_op_test.cc | 73 input_values.authority_hash); in TEST() 124 input_values.authority_hash); in TEST() 201 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 231 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST()
|
H A D | cbor_cert_op_test.cc | 83 input_values.authority_hash); in TEST() 130 input_values.authority_hash); in TEST() 293 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 323 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST()
|
H A D | template_cert_op_test.cc | 62 input_values.authority_hash); in TEST() 175 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 202 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST()
|
H A D | template_cbor_cert_op_test.cc | 63 input_values.authority_hash); in TEST() 177 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST() 206 DeriveFakeInputValue(seed, DICE_HASH_SIZE, inputs[i].authority_hash); in TEST()
|
/aosp_15_r20/tools/security/remote_provisioning/hwtrust/src/cbor/dice/ |
H A D | entry.rs | 105 .authority_hash(f.authority_hash.ok_or_else(|| anyhow!("authority hash required"))?) in from_entries() 121 authority_hash: Option<Vec<u8>>, field 186 let mut authority_hash = FieldValue::new("authority hash"); in from_entries() localVariable 202 AUTHORITY_HASH => &mut authority_hash, in from_entries() 217 let (code_hash, authority_hash) = in from_entries() 218 validate_hash_sizes(profile, code_hash, &config_hash, authority_hash, is_root)?; in from_entries() 230 authority_hash, in from_entries() 239 authority_hash: FieldValue, in validate_hash_sizes() 243 let authority_hash: Option<Vec<u8>> = authority_hash.into_optional_bytes()?; in validate_hash_sizes() localVariable 262 if let Some(ref authority_hash) = authority_hash { in validate_hash_sizes() [all …]
|
/aosp_15_r20/trusty/user/app/sample/hwbcc/ |
D | main.c | 54 uint8_t authority_hash[DICE_HASH_SIZE]; in main() local 55 memset(authority_hash, 0, DICE_HASH_SIZE); in main() 67 swbcc_glob_init(FRS, code_hash, authority_hash, &config_descriptor); in main()
|
/aosp_15_r20/packages/modules/Virtualization/libs/dice/driver/src/ |
D | lib.rs | 135 authority_hash: Hash, in derive() 142 authority_hash, in derive() 242 let authority_hash = hash(&String::from("test authority hash").into_bytes())?; in test_dice_driver_from_file_deletes_file_after_derive() localVariable 245 let _ = dice.derive(code_hash, &desc, authority_hash, false, hidden)?; in test_dice_driver_from_file_deletes_file_after_derive()
|
/aosp_15_r20/out/soong/.intermediates/packages/modules/Virtualization/libs/dice/open_dice/libopen_dice_cbor_bindgen/android_arm64_armv8-2a_cortex-a55_source/ |
D | bindings.rs | 48 pub authority_hash: [u8; 64usize], field 139 unsafe { ::std::ptr::addr_of!((*ptr).authority_hash) as usize - ptr as usize }, in bindgen_test_layout_DiceInputValues_() 145 stringify!(authority_hash) in bindgen_test_layout_DiceInputValues_()
|
/aosp_15_r20/out/soong/.intermediates/packages/modules/Virtualization/libs/dice/open_dice/libopen_dice_cbor_bindgen_nostd/android_arm64_armv8-2a_cortex-a55_source/ |
D | bindings.rs | 50 pub authority_hash: [u8; 64usize], field 141 unsafe { ::core::ptr::addr_of!((*ptr).authority_hash) as usize - ptr as usize }, in bindgen_test_layout_DiceInputValues_() 147 stringify!(authority_hash) in bindgen_test_layout_DiceInputValues_()
|
/aosp_15_r20/packages/modules/Virtualization/guest/derive_microdroid_vendor_dice_node/src/ |
D | main.rs | 71 let authority_hash = if let Some(pubkey) = vbmeta.public_key() { in dice_derivation() localVariable 88 dice.derive(code_hash, &desc, authority_hash, /* debug= */ false, hidden) in dice_derivation()
|
/aosp_15_r20/system/authgraph/core/src/ |
H A D | key.rs | 360 pub authority_hash: Option<Vec<u8>>, field 864 (AUTHORITY_HASH, Value::Bytes(authority_hash)) => { in from_cbor_value() 865 match dice_chain_entry_payload.authority_hash { in from_cbor_value() 866 None => dice_chain_entry_payload.authority_hash = Some(authority_hash), in from_cbor_value()
|
/aosp_15_r20/packages/modules/Virtualization/guest/rialto/tests/ |
D | test.rs | 218 let authority_hash = vm_component.get(3).unwrap().decode_as::<asn1::OctetString>().unwrap(); in check_vm_component() localVariable 219 assert_eq!(expected_component.authority_hash, authority_hash.as_bytes()); in check_vm_component()
|
/aosp_15_r20/external/trusty/arm-trusted-firmware/lib/psa/ |
D | dice_protection_environment.c | 126 (UsefulBufC) { input->authority_hash, in encode_dice_inputs() 127 sizeof(input->authority_hash) }); in encode_dice_inputs()
|