-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SFT-3631: Add firmware image test vectors module.
* test-vectors/Cargo.toml (features): Add firmware feature. * test-vectors/src/firmware.rs: New module. * test-vectors/src/lib.rs (firmware): Register it.
- Loading branch information
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
pub const VALID_HEADER: &[u8] = include_bytes!("../data/v2.3.0-firmware-header.bin"); | ||
pub const INVALID_MAGIC: &[u8] = include_bytes!("../data/v2.3.0-firmware-magic.bin"); | ||
pub const INVALID_MAX_LENGTH: &[u8] = include_bytes!("../data/v2.3.0-firmware-max-length.bin"); | ||
pub const INVALID_MIN_LENGTH: &[u8] = include_bytes!("../data/v2.3.0-firmware-min-length.bin"); | ||
pub const INVALID_PUBLIC_KEY1: &[u8] = include_bytes!("../data/v2.3.0-firmware-public-key1.bin"); | ||
pub const INVALID_PUBLIC_KEY2: &[u8] = include_bytes!("../data/v2.3.0-firmware-public-key2.bin"); | ||
pub const INVALID_TIMESTAMP: &[u8] = include_bytes!("../data/v2.3.0-firmware-timestamp.bin"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters