From df12dcdd1eec08a665c34b450af193a528b453e2 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 8 Oct 2022 02:25:46 +0800 Subject: [PATCH] fix hash count computation --- services/root-keys/src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/root-keys/src/api.rs b/services/root-keys/src/api.rs index 65266b8a8..423452f76 100644 --- a/services/root-keys/src/api.rs +++ b/services/root-keys/src/api.rs @@ -372,7 +372,7 @@ pub const CHECKSUM_BLOCKLEN_PAGE: u32 = 0x100; /// plaintext + ciphertext header itself. /// /// Total number of checksums has to divide evenly into the size of the PDDB region -pub const TOTAL_CHECKSUMS: u32 = xous::PDDB_LEN / CHECKSUM_BLOCKLEN_PAGE; +pub const TOTAL_CHECKSUMS: u32 = xous::PDDB_LEN / (CHECKSUM_BLOCKLEN_PAGE * 4096); #[repr(C, align(8))] #[derive(Copy, Clone, Debug)]