Searched refs:as_array (Results 1 – 12 of 12) sorted by relevance
/packages/modules/Virtualization/libs/dice/open_dice/tests/ |
D | api_test.rs | 97 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/ |
D | dice.rs | 101 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
|
D | ops.rs | 104 let (_, private_key) = keypair_from_seed(cdi_priv_key_seed.as_array())?; in derive_cdi_leaf_priv()
|
/packages/modules/Bluetooth/system/btcore/include/ |
D | event_mask.h | 26 typedef struct { const uint8_t as_array[8]; } bt_event_mask_t; member
|
D | device_features.h | 25 typedef struct { uint8_t as_array[8]; } bt_device_features_t; member
|
/packages/modules/Virtualization/libs/dice/sample_inputs/tests/ |
D | api_test.rs | 140 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/ |
D | bluetooth_admin.rs | 121 .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/ |
D | service_vm.rs | 108 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/ |
D | sample_inputs.rs | 110 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/ |
D | bcc.rs | 167 let entry = self.0.as_array()?; in payload_bytes()
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | rkp.rs | 167 Ok(sign(message, private_key.as_array()) in sign_message()
|
/packages/modules/Virtualization/service_vm/client_vm_csr/src/ |
D | lib.rs | 103 sign(message, cdi_leaf_priv.as_array()).map(|v| v.to_vec()) in build_signed_data()
|