libgocryptfs/internal/configfile
Jakob Unterwurzacher 97d8340bd8 configfile: add Validate() function, support FlagXChaCha20Poly1305
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.
2021-08-23 16:00:41 +02:00
..
config_test tests: update config_test example files 2016-06-16 23:19:05 +02:00
config_file.go configfile: add Validate() function, support FlagXChaCha20Poly1305 2021-08-23 16:00:41 +02:00
config_test.go configfile: add Validate() function, support FlagXChaCha20Poly1305 2021-08-23 16:00:41 +02:00
feature_flags.go configfile: add Validate() function, support FlagXChaCha20Poly1305 2021-08-23 16:00:41 +02:00
scrypt_test.go go mod: declare module version v2 2021-08-23 15:05:15 +02:00
scrypt.go configfile: add Validate() function, support FlagXChaCha20Poly1305 2021-08-23 16:00:41 +02:00
validate.go configfile: add Validate() function, support FlagXChaCha20Poly1305 2021-08-23 16:00:41 +02:00