<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/internal/contentenc, branch v1.4</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=v1.4</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=v1.4'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2017-06-11T19:56:16+00:00</updated>
<entry>
<title>contentenc: parallelize encryption for 128kiB writes</title>
<updated>2017-06-11T19:56:16+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-06-11T11:34:46+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=e52594dae67a5f2532a2e65abaafc8c993fb2db4'/>
<id>urn:sha1:e52594dae67a5f2532a2e65abaafc8c993fb2db4</id>
<content type='text'>
128kiB = 32 x 4kiB pages is the maximum we get from the kernel. Splitting
up smaller writes is probably not worth it.

Parallelism is limited to two for now.
</content>
</entry>
<entry>
<title>contentenc: move EncryptBlocks() loop into its own functions</title>
<updated>2017-06-07T20:09:15+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-06-07T20:06:28+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=294628b38435698ec63f2b13044ec993af1563f1'/>
<id>urn:sha1:294628b38435698ec63f2b13044ec993af1563f1</id>
<content type='text'>
This allows easy parallelization in the future.
</content>
</entry>
<entry>
<title>fusefrontend: write: consolidate and move encryption to contentenc</title>
<updated>2017-06-01T20:19:27+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-06-01T19:39:47+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=a24faa3ba52c66dfc1707da5c8d001f2adff9ccc'/>
<id>urn:sha1:a24faa3ba52c66dfc1707da5c8d001f2adff9ccc</id>
<content type='text'>
Collect all the plaintext and pass everything to contentenc in
one call.

This will allow easier parallization of the encryption.

https://github.com/rfjakob/gocryptfs/issues/116
</content>
</entry>
<entry>
<title>Fix two comments</title>
<updated>2017-06-01T16:53:57+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-06-01T16:53:57+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=f44902aaaeb8f60060c2f852b66962eca1df6b99'/>
<id>urn:sha1:f44902aaaeb8f60060c2f852b66962eca1df6b99</id>
<content type='text'>
One out-of-date and the other with a typo.
</content>
</entry>
<entry>
<title>contenenc: reject all-zero file ID</title>
<updated>2017-05-25T12:20:27+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-05-25T12:20:17+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=2ce269ec63e0a9c87b2fce45a5bf0cf09abf5bba'/>
<id>urn:sha1:2ce269ec63e0a9c87b2fce45a5bf0cf09abf5bba</id>
<content type='text'>
This should never happen in normal operation and is a sign of
data corruption. Catch it early.
</content>
</entry>
<entry>
<title>contentenc: better error reporting in ParseHeader</title>
<updated>2017-05-25T12:18:44+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-05-25T12:18:44+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=c0e411f81d01607fa59338365933232231738581'/>
<id>urn:sha1:c0e411f81d01607fa59338365933232231738581</id>
<content type='text'>
Log the message ourselves and return EINVAL.

Before:

	gocryptfs[26962]: go-fuse: can't convert error type: ParseHeader: invalid version: got 0, want 2

After:

	gocryptfs[617]: ParseHeader: invalid version: want 2, got 0. Returning EINVAL.
</content>
</entry>
<entry>
<title>contentenc: downgrade "interrupted write?" warning to debug</title>
<updated>2017-05-01T16:44:18+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-05-01T16:44:18+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=1a89919d80f28ca4126d70bcc1d617145abc2695'/>
<id>urn:sha1:1a89919d80f28ca4126d70bcc1d617145abc2695</id>
<content type='text'>
This can happen during normal operation, and is harmless since

14038a1644f17f50b113a05d09a2a0a3b3e973b2
"fusefrontend: readFileID: reject files that consist only of a header"

causes dormant header-only files to be rewritten on the next write.
</content>
</entry>
<entry>
<title>forcedecode: tighten checks</title>
<updated>2017-04-23T22:25:02+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-04-23T22:25:02+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=3409ade2723d931097560fbbe35e461553c5912c'/>
<id>urn:sha1:3409ade2723d931097560fbbe35e461553c5912c</id>
<content type='text'>
...and fix a few golint issues and print a scary warning message on mount.

Also, force the fs to ro,noexec.
</content>
</entry>
<entry>
<title>Add -forcedecode</title>
<updated>2017-04-23T21:11:56+00:00</updated>
<author>
<name>danim7</name>
</author>
<published>2017-04-08T00:09:28+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=f1945c4daae65074cfca8f0ab5b97ac5a50c24a0'/>
<id>urn:sha1:f1945c4daae65074cfca8f0ab5b97ac5a50c24a0</id>
<content type='text'>
Force decode of encrypted files even if the integrity check fails, instead of
failing with an IO error. Warning messages are still printed to syslog if corrupted
files are encountered.
It can be useful to recover files from disks with bad sectors or other corrupted
media.

Closes https://github.com/rfjakob/gocryptfs/pull/102 .
</content>
</entry>
<entry>
<title>contentenc: catch integer underflow in file size calculation</title>
<updated>2017-03-07T19:56:50+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-03-06T22:50:17+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=2f953fdb95f44078895fec9bc4d542cd371126be'/>
<id>urn:sha1:2f953fdb95f44078895fec9bc4d542cd371126be</id>
<content type='text'>
If you truncate a ciphertext file to 19 bytes, you could get the
impression that the plaintext is 18446744073709551585 bytes long,
as reported by "ls -l".

Fix it by clamping the value to zero.
</content>
</entry>
</feed>
