28 Commits
Author SHA1 Message Date
Sosthène Guédon 7b5ebb660f Add fsinfo to virt implementation 2024-07-24 17:21:42 +02:00
Sosthène Guédon 0a7c962a14 Add filesystem info extension and backend implementation 2024-07-24 16:06:29 +02:00
Sosthène Guédon c5371af973 Fix CI 2024-07-24 16:05:41 +02:00
Robin Krahl e016b25fbc Import HkdfExtension from Nitrokey/trussed-hkdf-backend
The HkdfExtension was previously maintained in a separate repository and
together with a custom backend.  Every additional backend adds some
overhead, both in the firmware and for maintenance.  Therefore this
patch moves the trussed-hkdf crate with the HkdfExtension as an
extension into this repository and implements it for the StagingBackend,
replacing the HkdfBackend.

This patch also releases trussed-hkdf v0.2.0 and trussed-staging v0.3.0.

Fixes: https://github.com/Nitrokey/trussed-hkdf-backend/issues/6
2024-03-25 13:14:12 +01:00
Robin Krahl 1a964539e6 Remove encrypted-chunked feature
This patch always enables the syscalls that previously were behind the
encrypted-chunked feature.  This makes sure that enabling the feature in
one crate does not break another crate that also depends on
trussed-chunked.  In practice, the feature is always enabled anyway so
separating the encrypted syscalls does not bring any benefits.

Fixes: https://github.com/trussed-dev/trussed-staging/issues/20
2024-03-15 11:10:42 +01:00
Robin Krahl 06bf42cfd6 Extract extensions into crates
Previously, this repository contained one crate with all extension
definitions and the backend implementation.  This is problematic if
semantic versioning is used as a breaking change in the backend or in a
single extension would also affect all users of any other extension.

This patch moves the extensions into separate crates that can be
versioned independently so that clients only have to depend on the
extension crates they really need.

Fixes: https://github.com/trussed-dev/trussed-staging/issues/3
2024-03-15 10:53:13 +01:00
Sosthène Guédon f2cfa2ea24 Fix compilation with virt and no-default-features 2024-03-05 10:58:22 +01:00
Sosthène Guédon 05ac73b44a Fix clippy warnings 2024-02-16 10:25:00 +01:00
Robin Krahl 6687f0a28f Use DynFilesystem trait 2023-12-15 22:03:46 +01:00
Robin Krahl 818adfce28 chunked: Add AppendFile syscall 2023-11-23 12:37:36 +01:00
Robin Krahl a059198b2b chunked: Add PartialReadFile syscall 2023-11-23 10:12:37 +01:00
Sosthène Guédon 59dda984e4 Fix visibility of FactoryResetClientRequest field 2023-11-16 14:33:22 +01:00
Sosthène Guédon 26978b28cf Fix clippy warnings and compilation 2023-11-09 16:52:59 +01:00
Sosthène Guédon 24c4601258 Move manage/mod.rs -> manage.rs 2023-11-09 16:16:57 +01:00
Sosthène Guédon df6d9c5198 Add tests and document format for should_preserve function 2023-11-09 16:13:08 +01:00
Sosthène Guédon 489400644f Improve factory reset preservation logic 2023-11-09 10:56:02 +01:00
Sosthène Guédon bfde40403c Add manage extension 2023-11-09 10:28:52 +01:00
Sosthène Guédon 5bf1fb2852 Fix rustdoc warnings 2023-10-24 10:59:48 +02:00
Sosthène Guédon bf51805abf Run cargo fmt 2023-10-24 10:50:45 +02:00
Sosthène Guédon c3822d658e Fix visiblity to allow out-of-crate implementations
This is required by the SE050 backend
2023-10-24 10:47:29 +02:00
Sosthène Guédon 83e33925f1 Adapt to updated trussed 2023-08-28 17:32:38 +02:00
Sosthène Guédon f492827c29 Adapt to trussed support for interrupts 2023-06-20 17:39:17 +02:00
Sosthène Guédon a3df414fd5 write_all: enable encrypted writes 2023-04-25 17:30:09 +02:00
Sosthène Guédon c6c99f4504 Update documentation 2023-04-24 18:19:52 +02:00
Sosthène Guédon bcd3cd02a8 Fix clippy lints 2023-04-24 18:12:43 +02:00