Julien Cretin
c3e1b5df50
Merge pull request #447 from kaczmarczyck/channel-logic
...
Channels logic
2022-03-18 11:12:27 +01:00
Fabian Kaczmarczyck
d6a2080cd5
adds channels to CTAP logic
2022-03-16 17:03:00 +01: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
7e7d5e38a1
enforces Module imports granularity ( #445 )
2022-03-14 20:44:48 +01:00
kaczmarczyck
ba0c583617
introduces Transport and Channel ( #444 )
2022-03-14 18:40:24 +01:00
kaczmarczyck
1372fd0b1a
Separates HID command logic ( #443 )
...
* moves HID logic related to CTAP state out of the HID mod
* fixes license headers
2022-03-14 17:41:00 +01:00
kaczmarczyck
163057daf0
Clean public HID interface ( #442 )
...
* clear public HID interface and tests
* fixes nits
2022-03-14 12:08:44 +01:00
Shiling Wang
2050f9f272
Replaced Libtock driver clock with embedded_time::Clock ( #422 )
...
* Replaced Libtock driver clock with embedded_time::Clock
* Add unittest and address some comments
* Add unittest and address some comments
2022-03-10 16:18:47 +01:00
Julien Cretin
d81af2857e
Merge pull request #435 from ia0/env_console
...
Add write to the environment
2022-03-08 16:47:54 +01:00
Julien Cretin
02baff9483
Merge pull request #433 from ia0/firmware_protection
...
Add firmware protection to the environment
2022-03-08 16:47:39 +01:00
Julien Cretin
0acafb107f
Merge branch 'firmware_protection' into env_console
2022-03-08 15:02:34 +01:00
Julien Cretin
95ba81b9ed
Merge branch 'develop' into firmware_protection
2022-03-08 11:25:44 +01:00
Julien Cretin
b0ddef9e70
Merge pull request #440 from ia0/take_storage
...
Replace steal_storage with take_storage
2022-03-08 11:23:25 +01:00
Julien Cretin
4edd542b63
Merge branch 'develop' into take_storage
2022-03-08 11:02:35 +01:00
Julien Cretin
47470db7a6
Merge pull request #438 from ia0/env_store
...
Add Store and UpgradeStorage to Env
2022-03-08 11:00:58 +01:00
kaczmarczyck
ca796a5e78
Merge branch 'develop' into env_store
2022-03-08 10:32:47 +01:00
kaczmarczyck
bf3d65dc79
roll back fuzzing install script, documentation instead ( #439 )
2022-03-08 03:09:48 +01:00
Julien Cretin
dc00b94ee8
Remove steal_storage
2022-03-07 19:43:58 +01:00
Julien Cretin
3211342934
Not all tock boards have upgrade storage
2022-03-07 15:59:37 +01:00
Julien Cretin
f08be3d57d
Merge branch 'develop' into env_store
2022-03-07 15:34:17 +01:00
Fabian Kaczmarczyck
7c1ddcda0a
fixes doc
2022-03-07 15:19:49 +01:00
Fabian Kaczmarczyck
2df7164c1f
adds a versatile API to make removing CtapState easier
2022-03-07 15:19:49 +01:00
Fabian Kaczmarczyck
c595980a3b
new process_message function and command enum
2022-03-07 15:19:49 +01:00
hcyang
3d3689dc23
Freeze cargo fuzz's version and add fuzz corpus to gitignore ( #434 )
2022-03-07 13:02:13 +01:00
Julien Cretin
732523d380
Use Store instead of Storage in Env
2022-03-07 12:48:33 +01:00
kaczmarczyck
d1f425c258
Adds SHA256 Cryptocell code to bootloader ( #432 )
...
* adds bootloader code
* fix header and typos
2022-03-04 16:21:07 +01:00
Julien Cretin
2e3034193e
Address comments
2022-03-04 16:09:04 +01:00
Julien Cretin
f09e5a77e8
Add write to the environment
2022-03-04 15:16:34 +01:00
Julien Cretin
dcc053c6cb
Fix lock in Tock when error is EALREADY
2022-03-04 12:23:22 +01:00
Julien Cretin
76b249c415
Merge branch 'env_flash' into firmware_protection
2022-03-04 11:34:03 +01:00
Julien Cretin
d16811fe25
Merge branch 'develop' into env_flash
2022-03-04 11:33:46 +01:00
Julien Cretin
91ba2c375e
Merge pull request #430 from ia0/check_user_presence
...
Move check_user_presence to env::tock
2022-03-04 11:33:05 +01:00
Julien Cretin
bb40e3244a
Add firmware protection to the environment
2022-03-04 11:24:10 +01:00
Julien Cretin
b80b67e2cf
Factorize tock storage in assert_once
2022-03-04 10:23:44 +01:00
Julien Cretin
172e629987
Merge branch 'check_user_presence' into env_flash
2022-03-04 10:20:44 +01:00
Julien Cretin
3ebc63e964
Merge branch 'develop' into check_user_presence
2022-03-04 10:20:32 +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
Julien Cretin
d476e58612
Merge branch 'check_user_presence' into env_flash
2022-03-03 17:52:13 +01:00
Julien Cretin
74c6c3da74
Merge branch 'develop' into check_user_presence
2022-03-03 17:50:43 +01:00
Julien Cretin
c401216544
Merge pull request #428 from ia0/env_feedback
...
Make user feedback fields private
2022-03-03 17:49:37 +01:00
Julien Cretin
c4a27bf935
Add Storage and UpgradeStorage to Env
2022-03-03 17:37:28 +01:00
Julien Cretin
d6e4c66562
Move check_user_presence to env::tock
2022-03-03 17:37:10 +01:00
Julien Cretin
5c59e809c2
Make user feedback fields private
2022-03-03 17:34:49 +01:00
Julien Cretin
7d39d4e2e8
Create a tock environment
2022-03-03 17:32:48 +01:00
Julien Cretin
6b8523ba93
Add documentation
2022-03-03 17:32:48 +01:00
Julien Cretin
18faf9f38f
Introduce a trait to abstract the CTAP environment
...
The end goal is to provide users with:
- the Env trait that they should implement
- the Ctap struct that they can use
2022-03-03 17:32:48 +01:00
Julien Cretin
8a2e99960f
Reduce maximum fuzz input size
...
The fuzzer timed out (60s) on a 17k input. On my machine it runs for 12s and 7s
after truncation to 10k.
2022-02-28 12:39:08 +01:00
Julien Cretin
d47ca7fa54
Add documentation
2022-01-26 11:05:02 +01:00
Julien Cretin
b59df7001f
Remove the software-specific Decrypt16BytesBlock and Encrypt16BytesBlock traits
...
They assume blocks are encrypted/decrypted one at a time. To avoid one syscall
per block, it is preferable to encrypt/decrypt the data at once.
Change-Id: I795c8f5b7901a1b55fa3b06fa45fe57ab19d06ea
2022-01-26 11:05:02 +01:00
kaczmarczyck
98c9191679
HMAC: only 32 byte keys ( #424 )
...
* only support HMAC with 32 byte keys
* includes HMAC in the trait to be generic
* re-added HAMC test
2022-01-18 13:14:11 +01:00