<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/internal/configfile/validate.go, branch xattr_user_buffer</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=xattr_user_buffer</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=xattr_user_buffer'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2025-07-07T17:59:35+00:00</updated>
<entry>
<title>Fix a bunch of staticcheck errors</title>
<updated>2025-07-07T17:59:35+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-07-07T17:54:48+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=8f5df19b353e02ffba842fd1b15ccf93da7ee3b4'/>
<id>urn:sha1:8f5df19b353e02ffba842fd1b15ccf93da7ee3b4</id>
<content type='text'>
Tool-assisted.
</content>
</entry>
<entry>
<title>cli: add -longnamemax</title>
<updated>2021-10-21T13:58:19+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-10-21T13:58:19+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=d14c9340d6fb473e9837e91db8b6e869c37ad8e5'/>
<id>urn:sha1:d14c9340d6fb473e9837e91db8b6e869c37ad8e5</id>
<content type='text'>
Fixes https://github.com/rfjakob/gocryptfs/issues/499
</content>
</entry>
<entry>
<title>configfile: replace broken switch/case logic with if</title>
<updated>2021-10-21T12:55:30+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-10-21T12:47:29+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=a652be805e1562948aff4dc232bd1c516ff01d00'/>
<id>urn:sha1:a652be805e1562948aff4dc232bd1c516ff01d00</id>
<content type='text'>
Because switch only matches once, we could have missed invalid
cases.

Replace the switch statements with a straight if rake.
</content>
</entry>
<entry>
<title>configfile: add Validate() function, support FlagXChaCha20Poly1305</title>
<updated>2021-08-23T14:00:41+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-08-21T19:43:26+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=97d8340bd81ddd60baac598d3e25ebfb4decb50c'/>
<id>urn:sha1:97d8340bd81ddd60baac598d3e25ebfb4decb50c</id>
<content type='text'>
We used to do validation using lists of mandatory feature flags.

With the introduction of XChaCha20Poly1305, this became too
simplistic, as it uses a different IV length, hence disabling
GCMIV128.

Add a dedicated function, Validate(), with open-coded validation
logic.

The validation and creation logic also gets XChaCha20Poly1305
support, and gocryptfs -init -xchacha now writes the flag into
gocryptfs.conf.
</content>
</entry>
</feed>
