-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Moving files in gocryptfs #226
Labels
Comments
Hi!
On Fri, Apr 13, 2018, 21:52 Simon ***@***.***> wrote:
I have a question regarding a file move in gocryptfs.
Let's say I have a folder A that is reverse-mounted onto folder B.
The structure of A is /1/2/3/, and the folder 1 contains a file named
test.txt.
Now I will copy the folder(contents) B somewhere else and mount it in
forward mode onto folder C.
As the documentation states, the reverse mode uses deterministic
encryption and per se will derive the IV from the encrypted path. Which to
say will have the gocryptfs.diriv up to folder /1/2/3/.
And now the actual question. If I move the file test.txt in the C mount
from the folder /1/ to /1/2/3/ will it use the diriv that the folder
provides for the filename encryption like in reverse mode ?
Yes!
And following from there, if I create the folder /1/2/3/4/ will it use
the deterministic method or the standard urandom stuff for the diriv ?
No, it will create a random one
… Thanks in advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#226>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARgfzx0UUv6tZsR8cVWvdim8kD4HTlWks5toQH9gaJpZM4TUFf7>
.
|
Then the Thanks. |
This just switches the encryption mode from aes-gcm to aes-siv. It has no effect on diriv |
You may be interested in looking at #108 . If you also want that feature, please comment there! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a question regarding a file move in gocryptfs.
Let's say I have a folder
A
that is reverse-mounted onto folderB
.The structure of
A
is/1/2/3/
, and the folder1
contains a file namedtest.txt
.Now I will copy the folder(contents)
B
somewhere else and mount it in forward mode onto folderC
.As the documentation states, the reverse mode uses deterministic encryption and per se will derive the IV from the encrypted path. Which to say will have the
gocryptfs.diriv
up to folder/1/2/3/
.And now the actual question. If I move the file
test.txt
in theC
mount from the folder/1/
to/1/2/3/
will it use thediriv
that the folder provides for the filename encryption like in reverse mode ?And following from there, if I create the folder
/1/2/3/4/
will it use the deterministic method or the standard urandom stuff for thediriv
?Thanks in advance.
The text was updated successfully, but these errors were encountered: