From 37a9b4c3ee9d5dd332ae2f4b25942c6fef254d72 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 3 Mar 2016 00:58:12 +0100 Subject: 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. --- internal/configfile/config_file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/configfile') 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) -- cgit v1.2.3