aboutsummaryrefslogtreecommitdiff
path: root/cryptfs/names_diriv.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-27 22:20:01 +0100
committerJakob Unterwurzacher2015-11-27 22:20:01 +0100
commita04a92cdab11df43f072db685b8ade6c973f8995 (patch)
tree457b018abf5fa6be480b58ea95375a11fbc449af /cryptfs/names_diriv.go
parent6acd772cf908908e3b0d817a78e64f98faaa8b7b (diff)
Run go fmt
Diffstat (limited to 'cryptfs/names_diriv.go')
-rw-r--r--cryptfs/names_diriv.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/cryptfs/names_diriv.go b/cryptfs/names_diriv.go
index 46e2bfd..ab039f0 100644
--- a/cryptfs/names_diriv.go
+++ b/cryptfs/names_diriv.go
@@ -9,16 +9,16 @@ import (
// readDirIV - read the "gocryptfs.diriv" file from "dir" (absolute path)
func (be *CryptFS) readDirIV(dir string) (iv []byte, err error) {
- ivfile := filepath.Join(dir, DIRIV_FILENAME)
- iv, err = ioutil.ReadFile(ivfile)
- if err != nil {
- Warn.Printf("readDirIV: %v\n", err)
- return nil, err
- }
- if len(iv) != DIRIV_LEN {
- return nil, fmt.Errorf("readDirIV: Invalid length %d\n", len(iv))
- }
- return iv, nil
+ ivfile := filepath.Join(dir, DIRIV_FILENAME)
+ iv, err = ioutil.ReadFile(ivfile)
+ if err != nil {
+ Warn.Printf("readDirIV: %v\n", err)
+ return nil, err
+ }
+ if len(iv) != DIRIV_LEN {
+ return nil, fmt.Errorf("readDirIV: Invalid length %d\n", len(iv))
+ }
+ return iv, nil
}
// WriteDirIV - create diriv file inside "dir" (absolute path)