Home
last modified time | relevance | path

Searched refs:authority_hash (Results 1 – 25 of 40) sorted by relevance

12

/aosp_15_r20/packages/modules/Virtualization/libs/libservice_vm_requests/src/
Ddice.rs292 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 …]
Dcert.rs92 authority_hash: &'a [u8], field
101 authority_hash: &sub_component.authority_hash, in new()
Dclient_vm.rs213 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 Dentry.rs32 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/
Ddice.rs50 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/
Dclient_vm.rs72 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/
Dswbcc.c45 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 Dcbor_multialg_op_test.cc148 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 Dboringssl_cert_op.c42 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 Dcbor_p256_cert_op_test.cc73 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 Dmbedtls_ops_test.cc66 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 Dboringssl_ed25519_ops_test.cc65 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 Dcbor_p384_cert_op_test.cc73 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 Dcbor_cert_op_test.cc83 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 Dtemplate_cert_op_test.cc62 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 Dtemplate_cbor_cert_op_test.cc63 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 Dentry.rs105 .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/
Dmain.c54 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/
Dlib.rs135 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/
Dbindings.rs48 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/
Dbindings.rs50 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/
Dmain.rs71 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 Dkey.rs360 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/
Dtest.rs218 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/
Ddice_protection_environment.c126 (UsefulBufC) { input->authority_hash, in encode_dice_inputs()
127 sizeof(input->authority_hash) }); in encode_dice_inputs()

12