Encrypted SD fs driver #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)
.