2017-07-12 23:47:49 +08:00
|
|
|
[package]
|
|
|
|
name = "mcuboot-sys"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["David Brown <david.brown@linaro.org>"]
|
|
|
|
description = "A simple wrapper around the mcuboot code."
|
|
|
|
build = "build.rs"
|
|
|
|
publish = false
|
2022-04-09 07:20:22 +08:00
|
|
|
edition = "2021"
|
2017-07-12 23:47:49 +08:00
|
|
|
|
|
|
|
[features]
|
|
|
|
# By default, build with simplistic signature verification.
|
|
|
|
default = []
|
|
|
|
|
|
|
|
# Verify RSA signatures. Note that at this time, the C code will not
|
|
|
|
# compile with both sig-rsa and sig-ecdsa enabled.
|
|
|
|
sig-rsa = []
|
|
|
|
|
2019-05-09 05:51:10 +08:00
|
|
|
# Verify RSA-3072 signatures.
|
|
|
|
sig-rsa3072 = []
|
|
|
|
|
2017-12-05 18:48:34 +08:00
|
|
|
# Verify ECDSA (secp256r1) signatures.
|
2017-07-12 23:47:49 +08:00
|
|
|
sig-ecdsa = []
|
|
|
|
|
2021-02-20 03:16:48 +08:00
|
|
|
# Verify ECDSA (secp256r1) signatures using mbed TLS
|
|
|
|
sig-ecdsa-mbedtls = []
|
|
|
|
|
2023-03-14 20:59:55 +08:00
|
|
|
# Verify ECDSA (p256 or p384) signatures using PSA Crypto API
|
|
|
|
sig-ecdsa-psa = []
|
|
|
|
|
|
|
|
# Enable P384 Curve support (instead of P256) for PSA Crypto
|
|
|
|
sig-p384 = []
|
|
|
|
|
2019-05-25 04:44:49 +08:00
|
|
|
# Verify ED25519 signatures.
|
|
|
|
sig-ed25519 = []
|
|
|
|
|
2017-07-12 23:47:49 +08:00
|
|
|
# Overwrite only upgrade
|
|
|
|
overwrite-only = []
|
|
|
|
|
2019-11-28 21:13:14 +08:00
|
|
|
swap-move = []
|
|
|
|
|
2019-02-18 18:50:22 +08:00
|
|
|
# Disable validation of the primary slot
|
|
|
|
validate-primary-slot = []
|
2017-11-24 02:28:25 +08:00
|
|
|
|
2019-02-18 18:50:22 +08:00
|
|
|
# Encrypt image in the secondary slot using RSA-OAEP-2048
|
2018-09-18 20:04:18 +08:00
|
|
|
enc-rsa = []
|
|
|
|
|
2021-05-14 23:46:14 +08:00
|
|
|
# Encrypt image in the secondary slot using AES-256-CTR and RSA-OAEP-2048
|
|
|
|
enc-aes256-rsa = []
|
|
|
|
|
2019-02-18 18:50:22 +08:00
|
|
|
# Encrypt image in the secondary slot using AES-KW-128
|
2018-09-18 20:04:18 +08:00
|
|
|
enc-kw = []
|
|
|
|
|
2021-05-14 23:46:14 +08:00
|
|
|
# Encrypt image in the secondary slot using AES-256-CTR and AES-KW-256
|
|
|
|
enc-aes256-kw = []
|
|
|
|
|
2019-10-24 18:43:53 +08:00
|
|
|
# Encrypt image in the secondary slot using ECIES-P256
|
|
|
|
enc-ec256 = []
|
|
|
|
|
2021-05-14 23:46:14 +08:00
|
|
|
# Encrypt image in the secondary slot using AES-256-CTR and ECIES-P256
|
|
|
|
enc-aes256-ec256 = []
|
|
|
|
|
2021-05-07 06:56:18 +08:00
|
|
|
# Encrypt image in the secondary slot using ECIES-P256 using Mbed TLS
|
|
|
|
enc-ec256-mbedtls = []
|
|
|
|
|
2020-04-02 22:20:37 +08:00
|
|
|
# Encrypt image in the secondary slot using ECIES-X25519
|
|
|
|
enc-x25519 = []
|
|
|
|
|
2021-05-14 23:46:14 +08:00
|
|
|
# Encrypt image in the secondary slot using AES-256-CTR and ECIES-X25519
|
|
|
|
enc-aes256-x25519 = []
|
|
|
|
|
2019-02-18 18:50:22 +08:00
|
|
|
# Allow bootstrapping an empty/invalid primary slot from a valid secondary slot
|
2018-12-19 03:21:51 +08:00
|
|
|
bootstrap = []
|
|
|
|
|
2019-04-04 11:50:05 +08:00
|
|
|
# Support multiple images (currently 2 instead of 1).
|
|
|
|
multiimage = []
|
|
|
|
|
2021-05-27 06:33:39 +08:00
|
|
|
# Support simulation of ram-loading. No swaps are performed, and the
|
|
|
|
# image is copied to RAM before loading it.
|
|
|
|
ram-load = []
|
|
|
|
|
2021-05-27 07:10:47 +08:00
|
|
|
# Support simulation of direct XIP. No swaps are performed, the image
|
|
|
|
# is directly executed out of whichever partition contains the most
|
|
|
|
# appropriate image.
|
|
|
|
direct-xip = []
|
|
|
|
|
2020-01-14 05:04:01 +08:00
|
|
|
# Check (in software) against version downgrades.
|
|
|
|
downgrade-prevention = []
|
|
|
|
|
2021-11-25 10:27:22 +08:00
|
|
|
# Support images with 32-byte maximum write alignment value.
|
|
|
|
max-align-32 = []
|
2021-05-14 23:46:14 +08:00
|
|
|
|
2023-04-27 20:24:30 +08:00
|
|
|
# Enable hardware rollback protection
|
|
|
|
hw-rollback-protection = []
|
|
|
|
|
2022-11-22 22:11:47 +08:00
|
|
|
# Enable the PSA Crypto APIs where supported for cryptography related operations.
|
|
|
|
psa-crypto-api = []
|
|
|
|
|
2017-07-12 23:47:49 +08:00
|
|
|
[build-dependencies]
|
2018-10-16 05:36:33 +08:00
|
|
|
cc = "1.0.25"
|
2017-07-12 23:47:49 +08:00
|
|
|
|
|
|
|
[dependencies]
|
2020-02-12 05:55:14 +08:00
|
|
|
libc = "0.2"
|
2019-01-03 02:42:39 +08:00
|
|
|
log = "0.4"
|
2017-07-12 23:47:49 +08:00
|
|
|
simflash = { path = "../simflash" }
|