aboutsummaryrefslogtreecommitdiff
path: root/internal/configfile
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-03-03 00:58:12 +0100
committerJakob Unterwurzacher2016-03-03 00:59:58 +0100
commit37a9b4c3ee9d5dd332ae2f4b25942c6fef254d72 (patch)
treebe34844cb4d60d922479acfa06af1222df4e6579 /internal/configfile
parentb5221c965155fbc6df958bfe4cdaed1c93b9b3f5 (diff)
Enable openssl in tests to support old Go versions
Go 1.4 and older do not support 128-bit IVs which caused the tests to panic.
Diffstat (limited to 'internal/configfile')
-rw-r--r--internal/configfile/config_file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go
index 0b910c0..e54e84e 100644
--- a/internal/configfile/config_file.go
+++ b/internal/configfile/config_file.go
@@ -98,8 +98,8 @@ func LoadConfFile(filename string, password string) ([]byte, *ConfFile, error) {
scryptHash := cf.ScryptObject.DeriveKey(password)
// Unlock master key using password-based key
- // We use stock go GCM instead of OpenSSL here as speed is not important
- // and we get better error messages
+ // We use stock go GCM instead of OpenSSL here as we only use 96-bit IVs,
+ // speed is not important and we get better error messages
cc := cryptocore.New(scryptHash, false, false)
ce := contentenc.New(cc, 4096)