Home
last modified time | relevance | path

Searched refs:as_array (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Virtualization/libs/dice/open_dice/tests/
Dapi_test.rs97 assert_eq!(cdi_private_key_seed.as_array(), EXPECTED_CDI_PRIVATE_KEY_SEED); in hash_derive_sign_verify()
98 let (pub_key, priv_key) = keypair_from_seed(cdi_private_key_seed.as_array()).unwrap(); in hash_derive_sign_verify()
100 assert_eq!(priv_key.as_array(), EXPECTED_PRIV_KEY); in hash_derive_sign_verify()
101 let mut signature = sign(b"MyMessage", priv_key.as_array()).unwrap(); in hash_derive_sign_verify()
/packages/modules/Virtualization/libs/dice/open_dice/src/
Ddice.rs101 pub fn as_array(&self) -> &[u8; PRIVATE_KEY_SEED_SIZE] { in as_array() method
128 pub fn as_array(&self) -> &[u8; PRIVATE_KEY_SIZE] { in as_array() method
Dops.rs104 let (_, private_key) = keypair_from_seed(cdi_priv_key_seed.as_array())?; in derive_cdi_leaf_priv()
/packages/modules/Bluetooth/system/btcore/include/
Devent_mask.h26 typedef struct { const uint8_t as_array[8]; } bt_event_mask_t; member
Ddevice_features.h25 typedef struct { uint8_t as_array[8]; } bt_device_features_t; member
/packages/modules/Virtualization/libs/dice/sample_inputs/tests/
Dapi_test.rs140 let signature = sign(MESSAGE, private_key.as_array()).unwrap(); in cdi_leaf_priv_corresponds_to_leaf_public_key_in_dice_chain()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_admin.rs121 .as_array()? in load_config_from_json()
322 .as_array() in get_sorted_allowed_services_from_config()
/packages/modules/Virtualization/service_vm/fake_chain/src/
Dservice_vm.rs108 let (public_key, _) = keypair_from_seed(private_key_seed.as_array()).map_err(|e| { in fake_dice_artifacts_up_to_pvmfw()
/packages/modules/Virtualization/libs/dice/sample_inputs/src/
Dsample_inputs.rs110 let (public_key, _) = keypair_from_seed(private_key_seed.as_array()).map_err(|e| { in make_sample_bcc_and_cdis()
/packages/modules/Virtualization/pvmfw/src/
Dbcc.rs167 let entry = self.0.as_array()?; in payload_bytes()
/packages/modules/Virtualization/service_vm/requests/src/
Drkp.rs167 Ok(sign(message, private_key.as_array()) in sign_message()
/packages/modules/Virtualization/service_vm/client_vm_csr/src/
Dlib.rs103 sign(message, cdi_leaf_priv.as_array()).map(|v| v.to_vec()) in build_signed_data()