blob: f4f2aceb35d7136dad368f20f72133e66d4ee18e [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 Brown42a7e542022-04-08 17:20:22 -06008edition = "2021"
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 Brown7e377ab2021-05-26 16:33:39 -060071# Support simulation of ram-loading. No swaps are performed, and the
72# image is copied to RAM before loading it.
73ram-load = []
74
David Brown11ffa0a2021-05-26 17:10:47 -060075# Support simulation of direct XIP. No swaps are performed, the image
76# is directly executed out of whichever partition contains the most
77# appropriate image.
78direct-xip = []
79
David Brown2ee5f7f2020-01-13 14:04:01 -070080# Check (in software) against version downgrades.
81downgrade-prevention = []
82
Gustavo Henrique Nihei7bfd14b2021-11-24 23:27:22 -030083# Support images with 32-byte maximum write alignment value.
84max-align-32 = []
Salome Thirot6fdbf552021-05-14 16:46:14 +010085
Roland Mikheld6703522023-04-27 14:24:30 +020086# Enable hardware rollback protection
87hw-rollback-protection = []
88
Antonio de Angelis65eb35c2022-11-22 14:11:47 +000089# Enable the PSA Crypto APIs where supported for cryptography related operations.
90psa-crypto-api = []
91
David Brown63902772017-07-12 09:47:49 -060092[build-dependencies]
Fabio Utzig455cad52018-10-15 14:36:33 -070093cc = "1.0.25"
David Brown63902772017-07-12 09:47:49 -060094
95[dependencies]
Fabio Utzig03cce472020-02-11 18:55:14 -030096libc = "0.2"
David Brown28215642019-01-02 11:42:39 -070097log = "0.4"
David Brown63902772017-07-12 09:47:49 -060098simflash = { path = "../simflash" }