Home
last modified time | relevance | path

Searched refs:HASH_SIZE (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Virtualization/libs/dice/sample_inputs/src/
Dsample_inputs.rs26 DiceMode, InputValues, OwnedDiceArtifacts, Result, CDI_SIZE, HASH_SIZE, HIDDEN_SIZE,
36 const CODE_HASH_ABL: [u8; HASH_SIZE] = [
42 const AUTHORITY_HASH_ABL: [u8; HASH_SIZE] = [
54 const CODE_HASH_AVB: [u8; HASH_SIZE] = [
60 const AUTHORITY_HASH_AVB: [u8; HASH_SIZE] = [
72 const AUTHORITY_HASH_ANDROID: [u8; HASH_SIZE] = [
181 [0u8; HASH_SIZE], // code_hash in make_sample_bcc_and_cdis()
/packages/modules/Virtualization/microdroid/
Dextract_microdroid_kernel_hashes.py23 HASH_SIZE = 32 variable
34 print("pub const HASH_SIZE: usize = " + str(HASH_SIZE) + ";\n")
87 return "0x00, " * HASH_SIZE
88 assert len(hex_string) == HASH_SIZE * 2, \
89 "Hex string must have length " + str(HASH_SIZE * 2) + ": " + \
/packages/modules/Virtualization/authfs/src/fsverity/
Dbuilder.rs23 const HASH_SIZE: usize = SHA256_HASH_SIZE; constant
24 const HASH_PER_PAGE: usize = CHUNK_SIZE as usize / HASH_SIZE;
48 let padding_bytes = (HASH_PER_PAGE - chunk.len()) * HASH_SIZE; in hash_all_pages()
118 Ok([0u8; HASH_SIZE]) in calculate_root_hash()
227 tree.update_hash(0, &[42; HASH_SIZE], CHUNK_SIZE); // fake hash of a CHUNK_SIZE block in merkle_tree_grow_leaves()
244 tree.update_hash(0, &[42; HASH_SIZE], CHUNK_SIZE); in merkle_tree_shrink_leaves()
245 tree.update_hash(0, &[42; HASH_SIZE], CHUNK_SIZE * 3); in merkle_tree_shrink_leaves()
/packages/modules/Virtualization/service_vm/fake_chain/src/
Dservice_vm.rs31 DiceMode, InputValues, OwnedDiceArtifacts, Result, CDI_SIZE, HASH_SIZE, HIDDEN_SIZE,
40 const CODE_HASH_PVMFW: [u8; HASH_SIZE] = [
46 const AUTHORITY_HASH_PVMFW: [u8; HASH_SIZE] = [
58 const CODE_HASH_SERVICE_VM: [u8; HASH_SIZE] = [
64 pub(crate) const AUTHORITY_HASH_SERVICE_VM: [u8; HASH_SIZE] = [
Dclient_vm.rs28 DiceConfigValues, DiceError, DiceMode, InputValues, OwnedDiceArtifacts, Result, HASH_SIZE,
37 const CODE_HASH_PAYLOAD: [u8; HASH_SIZE] = [
43 const AUTHORITY_HASH_PAYLOAD: [u8; HASH_SIZE] = [
178 fn kernel_code_hash() -> Result<[u8; HASH_SIZE]> { in kernel_code_hash()
/packages/modules/Virtualization/service_vm/requests/src/
Ddice.rs34 use diced_open_dice::{DiceMode, HASH_SIZE};
291 pub(crate) code_hash: [u8; HASH_SIZE],
292 pub(crate) authority_hash: [u8; HASH_SIZE],
527 code_hash: OnceCell<[u8; HASH_SIZE]>,
528 authority_hash: OnceCell<[u8; HASH_SIZE]>,
555 fn code_hash(&mut self, code_hash: [u8; HASH_SIZE]) -> Result<()> { in code_hash()
559 fn authority_hash(&mut self, authority_hash: [u8; HASH_SIZE]) -> Result<()> { in authority_hash()
Dclient_vm.rs28 use diced_open_dice::{DiceArtifacts, HASH_SIZE};
30 use microdroid_kernel_hashes::{HASH_SIZE as KERNEL_HASH_SIZE, OS_HASHES};
255 fn expected_kernel_authority_hash(service_vm_entry: &Value) -> Result<[u8; HASH_SIZE]> { in expected_kernel_authority_hash() argument
/packages/modules/Virtualization/libs/dice/open_dice/tests/
Dapi_test.rs19 verify, CDI_SIZE, HASH_SIZE, ID_SIZE, PRIVATE_KEY_SEED_SIZE,
24 const EXPECTED_HASH: [u8; HASH_SIZE] = [ in hash_succeeds()
/packages/modules/Virtualization/libs/dice/open_dice/src/
Dops.rs21 Signature, HASH_SIZE, PRIVATE_KEY_SEED_SIZE, PRIVATE_KEY_SIZE, PUBLIC_KEY_SIZE, SIGNATURE_SIZE,
31 let mut output: Hash = [0; HASH_SIZE]; in hash()
Ddice.rs32 pub const HASH_SIZE: usize = DICE_HASH_SIZE as usize; constant
51 pub type Hash = [u8; HASH_SIZE];
Dlib.rs40 PublicKey, Signature, CDI_SIZE, HASH_SIZE, HIDDEN_SIZE, ID_SIZE, PRIVATE_KEY_SEED_SIZE,