summaryrefslogtreecommitdiff
path: root/internal/nametransform
diff options
context:
space:
mode:
Diffstat (limited to 'internal/nametransform')
-rw-r--r--internal/nametransform/name_api.go4
-rw-r--r--internal/nametransform/names_core.go1
-rw-r--r--internal/nametransform/names_diriv.go6
-rw-r--r--internal/nametransform/pad16.go2
4 files changed, 6 insertions, 7 deletions
diff --git a/internal/nametransform/name_api.go b/internal/nametransform/name_api.go
index 462e99c..fe68e09 100644
--- a/internal/nametransform/name_api.go
+++ b/internal/nametransform/name_api.go
@@ -4,13 +4,13 @@ import "github.com/rfjakob/gocryptfs/internal/cryptocore"
type NameTransform struct {
cryptoCore *cryptocore.CryptoCore
- useEME bool
+ useEME bool
DirIVCache dirIVCache
}
func New(c *cryptocore.CryptoCore, useEME bool) *NameTransform {
return &NameTransform{
cryptoCore: c,
- useEME: useEME,
+ useEME: useEME,
}
}
diff --git a/internal/nametransform/names_core.go b/internal/nametransform/names_core.go
index 452ab45..2eb0026 100644
--- a/internal/nametransform/names_core.go
+++ b/internal/nametransform/names_core.go
@@ -60,4 +60,3 @@ func (n *NameTransform) encryptName(plainName string, iv []byte) (cipherName64 s
cipherName64 = base64.URLEncoding.EncodeToString(bin)
return cipherName64
}
-
diff --git a/internal/nametransform/names_diriv.go b/internal/nametransform/names_diriv.go
index d31a066..61e5bf0 100644
--- a/internal/nametransform/names_diriv.go
+++ b/internal/nametransform/names_diriv.go
@@ -8,16 +8,16 @@ import (
"strings"
"sync"
- "github.com/rfjakob/gocryptfs/internal/toggledlog"
"github.com/rfjakob/gocryptfs/internal/cryptocore"
+ "github.com/rfjakob/gocryptfs/internal/toggledlog"
)
const (
// identical to AES block size
- dirIVLen = 16
+ dirIVLen = 16
// dirIV is stored in this file. Exported because we have to ignore this
// name in directory listing.
- DirIVFilename = "gocryptfs.diriv"
+ DirIVFilename = "gocryptfs.diriv"
)
// A simple one-entry DirIV cache
diff --git a/internal/nametransform/pad16.go b/internal/nametransform/pad16.go
index c15160e..e512828 100644
--- a/internal/nametransform/pad16.go
+++ b/internal/nametransform/pad16.go
@@ -1,9 +1,9 @@
package nametransform
import (
- "fmt"
"crypto/aes"
"errors"
+ "fmt"
)
// pad16 - pad data to AES block size (=16 byte) using standard PKCS#7 padding