radumarias / rencfs

An encrypted file system written in Rust that is mounted with FUSE on Linux. It can be used to create encrypted directories
Apache License 2.0
102 stars 21 forks source link

Reusing nonce #135

Closed radumarias closed 3 months ago

radumarias commented 3 months ago

Consider this example: one uses your program, creates a backup of the data, keeps using the program. If they restore the backup, then they will restart from an earlier counter, and reuse the same nonces.

To mitigate this we could keep the nonce_seq in keyring also and use max(keyring, app_data).