Add HIL test for ECC (#1418)

* Add HIL test for ECC

* review changes: remove forgotten SysTimer in C2 test
This commit is contained in:
Juraj Sadel 2024-04-10 17:16:20 +02:00 committed by GitHub
parent 86f4f50b3e
commit c73a2d91ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1059 additions and 3 deletions

View File

@ -33,6 +33,10 @@ name = "uart_async"
harness = false harness = false
required-features = ["async", "embassy"] required-features = ["async", "embassy"]
[[test]]
name = "ecc"
harness = false
[dependencies] [dependencies]
defmt = { version = "0.3.6" } defmt = { version = "0.3.6" }
defmt-rtt = { version = "0.4.0" } defmt-rtt = { version = "0.4.0" }
@ -51,9 +55,13 @@ cfg-if = "1"
[dev-dependencies] [dev-dependencies]
embassy-executor = { version = "0.5.0", default-features = false, features = ["executor-thread", "arch-riscv32"] } embassy-executor = { version = "0.5.0", default-features = false, features = ["executor-thread", "arch-riscv32"] }
# Add the `embedded-test/defmt` feature for more verbose testing # Add the `embedded-test/defmt` feature for more verbose testing
embedded-test = { git = "https://github.com/probe-rs/embedded-test", rev = "b67dec33992f5bd79d414a0e70220dc4142278cf", default-features = false } embedded-test = { git = "https://github.com/probe-rs/embedded-test", rev = "b67dec33992f5bd79d414a0e70220dc4142278cf", default-features = false }
crypto-bigint = { version = "0.5.5", default-features = false } crypto-bigint = { version = "0.5.5", default-features = false }
nb = "1.1.0" nb = "1.1.0"
hex-literal = "0.4.1"
p192 = { version = "0.13.0", default-features = false, features = ["arithmetic"] }
p256 = { version = "0.13.2", default-features = false, features = ["arithmetic"] }
elliptic-curve = { version = "0.13.8", default-features = false, features = ["sec1"] }
[features] [features]
default = ["async", "embassy", "embassy-time-timg0"] default = ["async", "embassy", "embassy-time-timg0"]

1048
hil-test/tests/ecc.rs Normal file

File diff suppressed because it is too large Load Diff