Commit Graph
10 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
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 89099653b3 Increase test exhaustivity 2023-11-09 17:11:40 +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 9bac93888d Fix tests 2023-04-25 17:42:07 +02:00
Sosthène Guédon 10a4663f77 Add streaming API 2023-04-24 18:06:52 +02:00
Sosthène Guédon e6d54c69ea Fix features and lints 2023-04-24 11:55:09 +02:00
Sosthène Guédon 171fe379c8 Initial commit 2023-04-24 11:23:00 +02:00