1[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 8edition = "2018" 9 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 18# Verify RSA-3072 signatures. 19sig-rsa3072 = [] 20 21# Verify ECDSA (secp256r1) signatures. 22sig-ecdsa = [] 23 24# Verify ECDSA (secp256r1) signatures using mbed TLS 25sig-ecdsa-mbedtls = [] 26 27# Verify ED25519 signatures. 28sig-ed25519 = [] 29 30# Overwrite only upgrade 31overwrite-only = [] 32 33swap-move = [] 34 35# Disable validation of the primary slot 36validate-primary-slot = [] 37 38# Encrypt image in the secondary slot using RSA-OAEP-2048 39enc-rsa = [] 40 41# Encrypt image in the secondary slot using AES-256-CTR and RSA-OAEP-2048 42enc-aes256-rsa = [] 43 44# Encrypt image in the secondary slot using AES-KW-128 45enc-kw = [] 46 47# Encrypt image in the secondary slot using AES-256-CTR and AES-KW-256 48enc-aes256-kw = [] 49 50# Encrypt image in the secondary slot using ECIES-P256 51enc-ec256 = [] 52 53# Encrypt image in the secondary slot using AES-256-CTR and ECIES-P256 54enc-aes256-ec256 = [] 55 56# Encrypt image in the secondary slot using ECIES-P256 using Mbed TLS 57enc-ec256-mbedtls = [] 58 59# Encrypt image in the secondary slot using ECIES-X25519 60enc-x25519 = [] 61 62# Encrypt image in the secondary slot using AES-256-CTR and ECIES-X25519 63enc-aes256-x25519 = [] 64 65# Allow bootstrapping an empty/invalid primary slot from a valid secondary slot 66bootstrap = [] 67 68# Support multiple images (currently 2 instead of 1). 69multiimage = [] 70 71# Check (in software) against version downgrades. 72downgrade-prevention = [] 73 74 75[build-dependencies] 76cc = "1.0.25" 77 78[dependencies] 79libc = "0.2" 80log = "0.4" 81simflash = { path = "../simflash" } 82 83# Optimize some, even when building for debugging, otherwise the tests 84# are too slow. 85[profile.test] 86opt-level = 1 87