diff options
author | Jakob Unterwurzacher | 2016-09-29 21:29:45 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-09-29 21:56:49 +0200 |
commit | a2510efe12d2720399afcd8baea0c6634d4779e6 (patch) | |
tree | 4acd58cc201957f08ac64eb04788d1f9d27b9939 /internal/configfile | |
parent | bce96b5095798521e5b4d63dc1aa2078f20aaa50 (diff) |
reverse: use per-purpose nonce generation
Also pull all the deterministic nonce code into fusefrontend_reverse
to greatly simplify the normal code path.
Diffstat (limited to 'internal/configfile')
-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 f58c51c..9152523 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, nil) + cf.EncryptedKey = ce.EncryptBlock(key, 0, nil) } // WriteFile - write out config in JSON format to file "filename.tmp" |