summaryrefslogtreecommitdiff
path: root/internal/nametransform/names.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-04-18 16:14:48 +0200
committerJakob Unterwurzacher2020-04-18 16:14:48 +0200
commitf6b1c680b3f7c7d5cd842cca3117f5ee2f0f2fad (patch)
treed42efca364bb5b622c8295df001121c3eefe87c2 /internal/nametransform/names.go
parent8f5c2a613d37d8f58aee5b2405098da5c99aaca2 (diff)
nametransform: update comment & simplify tests
The comment still mentioned CBC, which has been removed a long time ago. The test definition can be rewritten using slice literals, saving sume stuttering.
Diffstat (limited to 'internal/nametransform/names.go')
-rw-r--r--internal/nametransform/names.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/nametransform/names.go b/internal/nametransform/names.go
index de70bce..e9f9346 100644
--- a/internal/nametransform/names.go
+++ b/internal/nametransform/names.go
@@ -105,8 +105,8 @@ func (n *NameTransform) decryptName(cipherName string, iv []byte) (string, error
return plain, err
}
-// EncryptName encrypts "plainName", returns a base64-encoded "cipherName64".
-// The encryption is either CBC or EME, depending on "useEME".
+// EncryptName encrypts "plainName", returns a base64-encoded "cipherName64",
+// encrypted using EME (https://github.com/rfjakob/eme).
//
// This function is exported because in some cases, fusefrontend needs access
// to the full (not hashed) name if longname is used.