Commit Graph

45 Commits

Author SHA1 Message Date
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
hkdf-v0.2.0 v0.3.0
2024-03-25 13:14:12 +01:00
Robin Krahl a9557b0579 Remove manage from default features
For some reason, the manage extension is implemented by default by the
trussed-staging backend while the chunked and wrap-key-to-file
extensions have to be specified explicitly.  For consistency and to
avoid activating features we don’t need, this patch removes the manage
feature from the default features.
2024-03-24 15:50:42 +01:00
Robin Krahl 5fc00717e6 Release trussed-staging and extensions
This patch releases v0.2.0 of the trussed-staging backend and v0.1.0 of
the new extension crates trussed-chunked, trussed-manage and
trussed-wrap-key-to-file.
wrap-key-to-file-v0.1.0 manage-v0.1.0 chunked-v0.1.0 v0.2.0
2024-03-15 11:18:39 +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
sosthene-nitrokey 1240154c26 Merge pull request #18 from trussed-dev/compilation-manage
Fix compilation with `virt` and `no-default-features`
2024-03-07 15:46:36 +01:00
Sosthène Guédon f2cfa2ea24 Fix compilation with virt and no-default-features 2024-03-05 10:58:22 +01:00
sosthene-nitrokey fdb0dd29bc Merge pull request #16 from trussed-dev/clippy
Fix clippy warnings
2024-02-16 14:02:22 +01:00
Sosthène Guédon 05ac73b44a Fix clippy warnings 2024-02-16 10:25:00 +01:00
Robin Krahl 6e70fc4db3 Merge pull request #14 from Nitrokey/dyn-fs
Use DynFilesystem trait
2023-12-15 22:05:46 +01:00
Robin Krahl 6687f0a28f Use DynFilesystem trait 2023-12-15 22:03:46 +01:00
Robin Krahl 3b9594d93f Merge pull request #13 from trussed-dev/chunked
chunked: Add AppendFile and PartialReadFile syscalls
2023-11-28 10:43:31 +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
sosthene-nitrokey 67d8ef0c40 Merge pull request #12 from trussed-dev/pub-reset
Fix visibility of FactoryResetClientRequest field
2023-11-16 16:10:53 +01:00
Sosthène Guédon 59dda984e4 Fix visibility of FactoryResetClientRequest field 2023-11-16 14:33:22 +01:00
sosthene-nitrokey 10baac2608 Merge pull request #11 from trussed-dev/manage-extension
Add manage extension
2023-11-10 15:18:45 +01:00
Sosthène Guédon 89099653b3 Increase test exhaustivity 2023-11-09 17:11:40 +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 73446fff1f Update changelog 2023-11-09 10:29:54 +01:00
Sosthène Guédon bfde40403c Add manage extension 2023-11-09 10:28:52 +01:00