mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +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,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[repr(C)]
|
||||
pub struct SwapSourceHeader {
|
||||
pub version: u32,
|
||||
pub parital_nonce: [u8; 8],
|
||||
pub mac_offset: u32,
|
||||
pub aad_len: u32,
|
||||
// consumes up to the remainder of the page
|
||||
pub aad: [u8; 4076],
|
||||
// aad is limited to 64 bytes!
|
||||
pub aad: [u8; 64],
|
||||
}
|
||||
|
||||
/// An aligned, raw-page structure
|
||||
|
|
|
|||
Loading…
Reference in a new issue