125 Commits

Author SHA1 Message Date
kaczmarczyck
893faa5113 Ask contributors to go to develop (#677)
* Ask contributors to go to develop

* Enables CI on other branches
2024-01-15 14:57:58 +01:00
kaczmarczyck
c160b034ef Latest compiler and package versions (#663)
* Move to latest compiler and package versions

We also add cargo audit to the desktop tests.

* Install cargo audit differently in workflow

* Removes leftover nightly references

* Removes install check from deploy.py

The toolchain should be correctly setup after setup.sh.

* Removes rust component install from workflow

Now that the nightly version is fixed, this should work ootb.

* Moves cargo audit install to setup.sh

* Updates cargo bloat workflow to default features
2023-11-09 15:00:37 +01:00
kaczmarczyck
e5ba9db644 Reworks workflows into script (#661)
* Reworks some workflows to run a script instead

Advantages are:
- Only one set of tests needs maintenance.
- Local results match workflows, no surprises.
- Reduced reliance on GitHub actions.

Fixes #50, #168, #169, #171, #507

* Adds macos to the test matrix
2023-11-08 17:24:15 +01:00
kaczmarczyck
94b0beed4b macos-latest for GitHub workflows (#626)
Workflows stopped running since we were on old MacOS versions. Using
latest should fix this longer-term.
2023-05-07 04:36:13 +02:00
kaczmarczyck
f25cdd6acc Tock V2 port - rebased and updated (#620)
* Changes from #580

* fixes USB cancel panic

* style fixes

* Update src/env/tock/storage.rs

Co-authored-by: Zach Halvorsen <zhalvorsen@google.com>

---------

Co-authored-by: Zach Halvorsen <zhalvorsen@google.com>
2023-05-05 09:55:16 +02:00
kaczmarczyck
be42b47caf Replaces Rng256 with new Rng API (#612)
* Replaces the Rng256 with RngCore from rand_core

The old trait was designed with our software crypto in mind. We should
use a more standard API going forward.

- Removes libraries/rng256/
- Ports libraries/crypto/ to rand_core
- Moves the used RNG trait to api/

* Use StdRng directy in TestEnv
2023-04-11 10:23:38 +02:00
kaczmarczyck
80b82ffd42 LTO fix and toml cleanup (#608)
* Removes redundant entries from Cargo.toml

This also fixes a compilation problem we have in debug mode with LTO
enabled.

* fix output-path triple dash
2023-04-04 13:40:42 +02:00
kaczmarczyck
ca65902a8f CTAP library move (#602)
* Moves all CTAP logic into its own library

* workflows fix test

* more coveralls workflow tests
2023-03-07 15:56:46 +01:00
kaczmarczyck
963549f9bb Removes nrfutil from default install (#595)
* remove nrfutil from the default install

* run CI Fuzz after merging, so changes are reflected
2023-02-13 17:49:29 +01:00
Julien Cretin
0d0460f016 Fix pylint versions (#572) 2022-12-07 09:53:31 +01:00
kaczmarczyck
5daf5f81d1 uses latest in workflows (#528) 2022-08-15 10:44:05 +02:00
hcyang
9bb1a2f7ac Fix ctap1 clippy warning (#517)
And improve clippy workflows.
2022-07-22 13:23:29 +08:00
Julien Cretin
67ef705eb4 Add ed25519 to local and github tests 2022-05-20 10:31:52 +02:00
kaczmarczyck
4782d7e186 Separate RNG library (#470)
* seperates the RNG library

* fixes crypto tests

* adds rng256 workflow

* fixes formatting
2022-04-28 11:36:43 +02:00
kaczmarczyck
0f47e99a08 Workflow for cargo bloat (#462)
* adds cargo bloat workflow

* uses notice instead

* warning for bigger sizes, ignore equal sizes

* DO NOT MERGE, TEST COMMIT

* reverted test commit
2022-04-21 12:48:04 +02:00
kaczmarczyck
0b564d4a8a Vendor HID (#446)
* introduces vendor HID

* updates workflows with new feature

* feature renaming and variant covering
2022-03-15 14:41:48 +01:00
kaczmarczyck
187111f9c5 Bootloader infrastructure and main logic (#404)
* adds bootloader code without a SHA256 implementation

* small fixes and typos
2022-03-03 22:01:42 +01:00
DavidKorczynski
83b2a74ae6 cifuzz: add integration (#418)
Signed-off-by: David Korczynski <david@adalogics.com>

Co-authored-by: Jean-Michel Picod <jmichel@google.com>
2021-12-02 14:21:56 +01:00
kaczmarczyck
8f96df53f2 Source-based coverage (#416)
* tweaks for grcov

* github action instead of run command

* branch name

* no branch name anymore
2021-11-23 20:12:32 +01:00
Fabian Kaczmarczyck
31df2ca45e use f-strings and test with 3.9 2021-09-17 14:12:58 +02:00
Jean-Michel Picod
c1f2551d0d Bump Tock kernel version (#374)
* Bump Tock kernel version

* Update boards to new kernel

* Update patches to new kernel

* Update PR template

* Bump libtock-rs

* Use new layout from libtock-rs

* Fix clippy warnings due to updated toolchain

* Fix new toolchain file format

* Bump elf2tab to v0.7.0

* Fix worklow and setup.sh script to use the TOML rust-toolchain file

* New libtock-rs style of declaring the stack.

* Fix padding in layout file.

The layout from libtock-rs generates invalid flash padding.
The value is 32-bit and therefore setting padding to 0xff yields
0xff000000 instead of 0xffffffff that we want.

* adds tock patch for app break hard fault

* sets in deploy, removed patch 04-mpu-fix

* fixed the if deploy

* fixes indentation

* updates board names in install.md

* fix docs and deploy style

Co-authored-by: Fabian Kaczmarczyck <kaczmarczyck@google.com>
Co-authored-by: kaczmarczyck <43844792+kaczmarczyck@users.noreply.github.com>
2021-09-10 08:32:34 +02:00
Julien Cretin
7a812a657b fix reproduce scripts 2021-08-09 13:55:55 +02:00
Jean-Michel Picod
f5de994ad4 Fix coveralls workflow (#355) 2021-08-02 17:15:44 +02:00
Jean-Michel Picod
46bbef2996 Coveralls (#339)
* Add code coverage report as part of the workflows

* Remove -Clink-dead-code which seems to be problematic

* Manually set features to avoid debug_* failing unit tests.

* Update badges

* Add libraries directory to trigger code coverage reporting.
2021-07-05 12:55:21 +02:00
kaczmarczyck
ce0ee6c054 Kernel minimization (#334)
* adds patch to remove unused kernel components

* new boards, rebase patches to match

* rename boards for deployment
2021-06-28 14:55:20 +02:00
David Drysdale
f2812e4fe2 cbor: drop std feature, use core in tests (#327) 2021-06-16 15:40:18 +02:00
Julien Cretin
6aa6a8acf0 Only build and test nightly
Prod is already built by opensk test.
2021-06-09 15:10:30 +02:00
Julien Cretin
67311e6c9f Fix typo 2021-06-09 13:55:53 +02:00
Julien Cretin
bb4b94a141 Build persistent store with frozen compiler
But still make sure it passes tests with the most recent nightly.
2021-06-09 13:42:28 +02:00
Fabian Kaczmarczyck
f64567febc fix crypto workflow 2021-02-02 06:52:01 +01:00
Julien Cretin
2cd760bad7 Merge branch 'develop' into v2_optim 2021-01-18 16:10:08 +01:00
Fabian Kaczmarczyck
de360a6cb6 removes all occurences of CTAP 2.1 flags from workflows 2021-01-07 18:40:37 +01:00
Julien Cretin
fb15032f0b Test with nightly 2020-12-10 18:56:29 +01:00
Julien Cretin
4253854cf1 Remove ram_storage feature
We don't need to build a production key without persistent storage. Tests and
fuzzing continue to use the std feature to use the RAM implementation (that does
sanity checks).
2020-12-10 13:06:05 +01:00
Jean-Michel Picod
dab0077b87 Fix broken crypto_test workflow.
The use of `::set-env` command in workflows is not being depreacted.
Moving to the new way of setting environment variables.
2020-11-20 11:58:39 +01:00
Julien Cretin
163e92fa6b Create fuzzing and add entropy helpers 2020-11-11 12:30:24 +01:00
Julien Cretin
4c76d5618e Show the diff but do not fail 2020-10-13 14:59:31 +02:00
Julien Cretin
d1ab6090f1 Disable reproducible workflow 2020-10-09 12:16:02 +02:00
Guillaume Endignoux
63432000db Allow clippy::new_without_default. 2020-09-29 11:19:41 +02:00
Guillaume Endignoux
ea781541d5 Install Clippy via actions-rs/toolchain. 2020-09-29 11:05:24 +02:00
Guillaume Endignoux
b46b103db0 Add a Clippy workflow. 2020-09-29 11:05:24 +02:00
Julien Cretin
72b460f9f8 Merge branch 'master' into v2_lib 2020-09-25 16:32:56 +02:00
Guillaume Endignoux
a8b4258d76 Disable cargo_fuzz workflow on MacOS. 2020-09-24 14:37:01 +02:00
Julien Cretin
a203ff13df Create new store and add storage API 2020-09-24 14:24:18 +02:00
Guillaume Endignoux
7485b097c1 Check that fuzzer in libraries/cbor builds properly. 2020-09-24 11:33:15 +02:00
mingxguo27
e467026e6f Added git workflow and shell script for fuzzing 2020-09-23 15:08:40 +00:00
mingxguo27
3a6a78bbf2 Resolved PR comments 2020-09-23 14:33:05 +00:00
mingxguo27
eca09cdeb6 Merge branch 'master' of https://github.com/google/OpenSK into mingxguo-fuzzing 2020-08-13 17:20:15 +00:00
mingxguo27
b09d64a015 Resolve pull request comments: refactoring and workflow 2020-08-12 10:18:17 +00:00
Jean-Michel Picod
f68ab0be9d Update GitHub workflow 2020-08-07 16:39:11 +02:00