{"action":"created","issue":{"url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/226","repository_url":"https://api.github.com/repos/rfjakob/gocryptfs","labels_url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/226/comments","events_url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/226/events","html_url":"https://github.com/rfjakob/gocryptfs/issues/226","id":314231073,"number":226,"title":"Question: Moving files in gocryptfs","user":{"login":"Lord-Simon","id":2320837,"avatar_url":"https://avatars2.githubusercontent.com/u/2320837?v=4","gravatar_id":"","url":"https://api.github.com/users/Lord-Simon","html_url":"https://github.com/Lord-Simon","followers_url":"https://api.github.com/users/Lord-Simon/followers","following_url":"https://api.github.com/users/Lord-Simon/following{/other_user}","gists_url":"https://api.github.com/users/Lord-Simon/gists{/gist_id}","starred_url":"https://api.github.com/users/Lord-Simon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lord-Simon/subscriptions","organizations_url":"https://api.github.com/users/Lord-Simon/orgs","repos_url":"https://api.github.com/users/Lord-Simon/repos","events_url":"https://api.github.com/users/Lord-Simon/events{/privacy}","received_events_url":"https://api.github.com/users/Lord-Simon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-13T19:52:28Z","updated_at":"2018-04-14T10:57:14Z","closed_at":null,"author_association":"NONE","body":"I have a question regarding a file move in gocryptfs.\r\n\r\nLet's say I have a folder ```A``` that is reverse-mounted onto folder ```B```.\r\nThe structure of ```A``` is ```/1/2/3/```, and the folder ```1``` contains a file named ```test.txt```.\r\nNow I will copy the folder(contents) ```B``` somewhere else and mount it in forward mode onto folder ```C```.\r\n\r\nAs 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/```.\r\n\r\nAnd 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 ? \r\nAnd 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``` ?\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/comments/381321030","html_url":"https://github.com/rfjakob/gocryptfs/issues/226#issuecomment-381321030","issue_url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/226","id":381321030,"user":{"login":"rfjakob","id":286847,"avatar_url":"https://avatars0.githubusercontent.com/u/286847?v=4","gravatar_id":"","url":"https://api.github.com/users/rfjakob","html_url":"https://github.com/rfjakob","followers_url":"https://api.github.com/users/rfjakob/followers","following_url":"https://api.github.com/users/rfjakob/following{/other_user}","gists_url":"https://api.github.com/users/rfjakob/gists{/gist_id}","starred_url":"https://api.github.com/users/rfjakob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfjakob/subscriptions","organizations_url":"https://api.github.com/users/rfjakob/orgs","repos_url":"https://api.github.com/users/rfjakob/repos","events_url":"https://api.github.com/users/rfjakob/events{/privacy}","received_events_url":"https://api.github.com/users/rfjakob/received_events","type":"User","site_admin":false},"created_at":"2018-04-14T10:57:14Z","updated_at":"2018-04-14T10:57:14Z","author_association":"OWNER","body":"Hi!\n\nOn Fri, Apr 13, 2018, 21:52 Simon <notifications@github.com> wrote:\n\n> I have a question regarding a file move in gocryptfs.\n>\n> Let's say I have a folder A that is reverse-mounted onto folder B.\n> The structure of A is /1/2/3/, and the folder 1 contains a file named\n> test.txt.\n> Now I will copy the folder(contents) B somewhere else and mount it in\n> forward mode onto folder C.\n>\n> As the documentation states, the reverse mode uses deterministic\n> encryption and per se will derive the IV from the encrypted path. Which to\n> say will have the gocryptfs.diriv up to folder /1/2/3/.\n>\n> And now the actual question. If I move the file test.txt in the C mount\n> from the folder /1/ to /1/2/3/ will it use the diriv that the folder\n> provides for the filename encryption like in reverse mode ?\n>\nYes!\n\n> And following from there, if I create the folder /1/2/3/4/ will it use\n> the deterministic method or the standard urandom stuff for the diriv ?\n>\nNo, it will create a random one\n\n> Thanks in advance.\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/rfjakob/gocryptfs/issues/226>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AARgfzx0UUv6tZsR8cVWvdim8kD4HTlWks5toQH9gaJpZM4TUFf7>\n> .\n>\n"}}
{"actor":{"display_login":"rfjakob"}}