diff options
author | Jakob Unterwurzacher | 2016-09-25 17:42:59 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-09-25 17:44:19 +0200 |
commit | 12808138ef105824de97924a585ad66bacb3a18b (patch) | |
tree | e5f5528db823b238986df6eec47578ca4d1e0dda /internal/configfile/config_file.go | |
parent | 32e55261ca7a972a2ea2651c142022947cbe043f (diff) |
contentenc: add "ExternalNonce" mode
This will be used for strong symlink encryption in reverse mode.
Diffstat (limited to 'internal/configfile/config_file.go')
-rw-r--r-- | internal/configfile/config_file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go index 32e7e66..74f506f 100644 --- a/internal/configfile/config_file.go +++ b/internal/configfile/config_file.go @@ -168,7 +168,7 @@ func (cf *ConfFile) EncryptKey(key []byte, password string, logN int) { // Lock master key using password-based key cc := cryptocore.New(scryptHash, cryptocore.BackendGoGCM, 96) ce := contentenc.New(cc, 4096) - cf.EncryptedKey = ce.EncryptBlock(key, 0, nil, contentenc.RandomNonce) + cf.EncryptedKey = ce.EncryptBlock(key, 0, nil, contentenc.RandomNonce, nil) } // WriteFile - write out config in JSON format to file "filename.tmp" |