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
|
2019-01-03 02:38:38 +08:00
|
|
|
edition = "2018"
|
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 = []
|
|
|
|
|
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 = []
|
|
|
|
|
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 = []
|
|
|
|
|
2019-10-24 18:43:53 +08:00
|
|
|
# Encrypt image in the secondary slot using ECIES-P256
|
|
|
|
enc-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 = []
|
|
|
|
|
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 = []
|
|
|
|
|
2020-01-14 05:04:01 +08:00
|
|
|
# Check (in software) against version downgrades.
|
|
|
|
downgrade-prevention = []
|
|
|
|
|
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" }
|
|
|
|
|
|
|
|
# Optimize some, even when building for debugging, otherwise the tests
|
|
|
|
# are too slow.
|
|
|
|
[profile.test]
|
|
|
|
opt-level = 1
|