RustCrypto in TockEnv (#625)

* Adds a rust_crypto feature to Tock

* -O3 for RustCrypto
This commit is contained in:
kaczmarczyck
2023-05-05 22:38:56 +02:00
committed by GitHub
parent cae2088f36
commit 99f81adc55
6 changed files with 365 additions and 67 deletions

View File

@@ -42,6 +42,7 @@ with_ctap1 = ["crypto/with_ctap1", "opensk/with_ctap1"]
with_nfc = ["libtock_drivers/with_nfc"]
vendor_hid = ["opensk/vendor_hid"]
ed25519 = ["ed25519-compact", "opensk/ed25519"]
rust_crypto = ["opensk/rust_crypto"]
[dev-dependencies]
enum-iterator = "0.6.0"
@@ -60,3 +61,8 @@ panic = "abort"
lto = true # Link Time Optimization usually reduces size of binaries and static libraries
opt-level = "z"
codegen-units = 1
[profile.release.package]
aes = { opt-level = 3 }
sha2 = { opt-level = 3 }
p256 = { opt-level = 3 }