blob: 06f6aecec9da184486c1a15253c629fdd5bdf718 [file] [log] [blame]
David Brown63902772017-07-12 09:47:49 -06001[package]
2name = "mcuboot-sys"
3version = "0.1.0"
4authors = ["David Brown <david.brown@linaro.org>"]
5description = "A simple wrapper around the mcuboot code."
6build = "build.rs"
7publish = false
David Brown65de6d12019-01-02 11:38:38 -07008edition = "2018"
David Brown63902772017-07-12 09:47:49 -06009
10[features]
11# By default, build with simplistic signature verification.
12default = []
13
14# Verify RSA signatures. Note that at this time, the C code will not
15# compile with both sig-rsa and sig-ecdsa enabled.
16sig-rsa = []
17
Fabio Utzig39297432019-05-08 18:51:10 -030018# Verify RSA-3072 signatures.
19sig-rsa3072 = []
20
Fabio Utzig8b619bd2017-12-05 08:48:34 -020021# Verify ECDSA (secp256r1) signatures.
David Brown63902772017-07-12 09:47:49 -060022sig-ecdsa = []
23
David Brown641af452021-02-19 12:16:48 -070024# Verify ECDSA (secp256r1) signatures using mbed TLS
25sig-ecdsa-mbedtls = []
26
Fabio Utzig97710282019-05-24 17:44:49 -030027# Verify ED25519 signatures.
28sig-ed25519 = []
29
David Brown63902772017-07-12 09:47:49 -060030# Overwrite only upgrade
31overwrite-only = []
32
Fabio Utzig031eb7d2019-11-28 10:13:14 -030033swap-move = []
34
David Vincze2d736ad2019-02-18 11:50:22 +010035# Disable validation of the primary slot
36validate-primary-slot = []
Fabio Utzigebdc9692017-11-23 16:28:25 -020037
David Vincze2d736ad2019-02-18 11:50:22 +010038# Encrypt image in the secondary slot using RSA-OAEP-2048
Fabio Utzig1e48b912018-09-18 09:04:18 -030039enc-rsa = []
40
Salome Thirot6fdbf552021-05-14 16:46:14 +010041# Encrypt image in the secondary slot using AES-256-CTR and RSA-OAEP-2048
42enc-aes256-rsa = []
43
David Vincze2d736ad2019-02-18 11:50:22 +010044# Encrypt image in the secondary slot using AES-KW-128
Fabio Utzig1e48b912018-09-18 09:04:18 -030045enc-kw = []
46
Salome Thirot6fdbf552021-05-14 16:46:14 +010047# Encrypt image in the secondary slot using AES-256-CTR and AES-KW-256
48enc-aes256-kw = []
49
Fabio Utzig90f449e2019-10-24 07:43:53 -030050# Encrypt image in the secondary slot using ECIES-P256
51enc-ec256 = []
52
Salome Thirot6fdbf552021-05-14 16:46:14 +010053# Encrypt image in the secondary slot using AES-256-CTR and ECIES-P256
54enc-aes256-ec256 = []
55
Fabio Utzig6c553d62021-05-06 19:56:18 -030056# Encrypt image in the secondary slot using ECIES-P256 using Mbed TLS
57enc-ec256-mbedtls = []
58
Fabio Utzig3fa72ca2020-04-02 11:20:37 -030059# Encrypt image in the secondary slot using ECIES-X25519
60enc-x25519 = []
61
Salome Thirot6fdbf552021-05-14 16:46:14 +010062# Encrypt image in the secondary slot using AES-256-CTR and ECIES-X25519
63enc-aes256-x25519 = []
64
David Vincze2d736ad2019-02-18 11:50:22 +010065# Allow bootstrapping an empty/invalid primary slot from a valid secondary slot
Fabio Utzig9b97b132018-12-18 17:21:51 -020066bootstrap = []
67
David Brown5e6f5e02019-04-04 10:50:05 +070068# Support multiple images (currently 2 instead of 1).
69multiimage = []
70
David Brown2ee5f7f2020-01-13 14:04:01 -070071# Check (in software) against version downgrades.
72downgrade-prevention = []
73
Salome Thirot6fdbf552021-05-14 16:46:14 +010074
David Brown63902772017-07-12 09:47:49 -060075[build-dependencies]
Fabio Utzig455cad52018-10-15 14:36:33 -070076cc = "1.0.25"
David Brown63902772017-07-12 09:47:49 -060077
78[dependencies]
Fabio Utzig03cce472020-02-11 18:55:14 -030079libc = "0.2"
David Brown28215642019-01-02 11:42:39 -070080log = "0.4"
David Brown63902772017-07-12 09:47:49 -060081simflash = { path = "../simflash" }
82
83# Optimize some, even when building for debugging, otherwise the tests
84# are too slow.
85[profile.test]
86opt-level = 1