This repository was archived by the owner on Mar 5, 2025. It is now read-only.
forked from trussed-dev/trussed
-
Notifications
You must be signed in to change notification settings - Fork 2
Add basic software encryption-at-rest #2
Draft
szszszsz
wants to merge
9
commits into
main
Choose a base branch
from
raw_store
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
Author
|
Current notes after a brief review:
If AES is required then:
|
Based on the HmacSha256 implementation - the only difference is, that the result is stored as a P256 key, instead of a shared variant. As disscussed, it would be best in the future to introduce shared implementation across different combinations of hash and resulting key algorithms.
fe578c5 to
c221d8d
Compare
|
Added
|
The 'service' module uses ClientId (via pipe::ServiceEndpoint::client_id) to
carry client-specific metadata. Previously, this was only the ID string, so
a type alias for PathBuf was sufficient. With the upcoming dynamic syscall
dispatch, the amount of client-specific state Trussed has to keep is going
to grow significantly. This commit creates the necessary scaffolding.
Minor changes:
- in the filesystem-based software store implementations, use an explicit
PathBuf - drop the ClientId type import / alias redeclaration
- pass ClientId around as a mutable reference in the reply_to() machinery,
as we do not want to clone this structure arbitrarily when it gets large
(as a sentinel, also stop deriving Clone for it)
* add RawStore to wrap store::* calls * add playgrond-app for testing * extend ClientContext with 'pin'
szszszsz
added a commit
to Nitrokey/nitrokey-websmartcard-rust
that referenced
this pull request
Oct 17, 2022
Depends on the non-merged Trussed modification Nitrokey/trussed#2
Member
Author
|
What's left to finish and merge this PR? |
|
quite a lot:
overall I would suggest to revisit this topic once the PRs above are merged |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add basic software encryption-at-rest