From 12808138ef105824de97924a585ad66bacb3a18b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 25 Sep 2016 17:42:59 +0200 Subject: contentenc: add "ExternalNonce" mode This will be used for strong symlink encryption in reverse mode. --- internal/configfile/config_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/configfile') 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" -- cgit v1.2.3