Encrypted SD fs driver #2

Open
opened 2023-08-21 07:31:28 +00:00 by tuxmain · 0 comments
Owner

Find a way to encrypt files on SD card.

chacha20poly1305: stream cipher. Fastest but needs the file to be completely re-encrypted at each modification.
aes: block cipher.

Use bcrypt-pbkdf for key derivation. (hard-memory unusable with 32kB memory)
Use derived key to decrypt random-generated key stored in a file.

Idea:
Each encrypted file is divided into fixed-size blocks (e.g. 256B or 512B). Each block is encrypted using nonce=keyed_hash(key=key, preimage=file_uuid+block_number).

Find a way to encrypt files on SD card. chacha20poly1305: stream cipher. Fastest but needs the file to be completely re-encrypted at each modification. aes: block cipher. Use bcrypt-pbkdf for key derivation. (hard-memory unusable with 32kB memory) Use derived key to decrypt random-generated key stored in a file. Idea: Each encrypted file is divided into fixed-size blocks (e.g. 256B or 512B). Each block is encrypted using `nonce=keyed_hash(key=key, preimage=file_uuid+block_number)`.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tuxmain/rustphone#2
No description provided.