mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
limit AAD to 64 bytes
This commit is contained in:
parent
3079da3a57
commit
8f94ecaf6c
1 changed files with 3 additions and 2 deletions
|
|
@ -9,14 +9,15 @@ pub struct SwapDescriptor {
|
||||||
pub flash_offset: u32,
|
pub flash_offset: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct SwapSourceHeader {
|
pub struct SwapSourceHeader {
|
||||||
pub version: u32,
|
pub version: u32,
|
||||||
pub parital_nonce: [u8; 8],
|
pub parital_nonce: [u8; 8],
|
||||||
pub mac_offset: u32,
|
pub mac_offset: u32,
|
||||||
pub aad_len: u32,
|
pub aad_len: u32,
|
||||||
// consumes up to the remainder of the page
|
// aad is limited to 64 bytes!
|
||||||
pub aad: [u8; 4076],
|
pub aad: [u8; 64],
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An aligned, raw-page structure
|
/// An aligned, raw-page structure
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue