RustCrypto in TockEnv (#625)
* Adds a rust_crypto feature to Tock * -O3 for RustCrypto
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user