diff options
author | Jakob Unterwurzacher | 2016-06-23 21:33:05 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-06-23 21:39:04 +0200 |
commit | e970b1fdb5963448f8d54d70ae903883605da32d (patch) | |
tree | a85df111f1a5ba0a60b415835269cb61e2c97109 /internal/nametransform/names_test.go | |
parent | b17f0465c7c38cab2f1f4ad0fc25d64d5cd175e7 (diff) |
nametransform: drop unused noiv functions
As DirIV is now mandatory there is no user for the noiv functions.
Diffstat (limited to 'internal/nametransform/names_test.go')
-rw-r--r-- | internal/nametransform/names_test.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/internal/nametransform/names_test.go b/internal/nametransform/names_test.go index f996860..d772af2 100644 --- a/internal/nametransform/names_test.go +++ b/internal/nametransform/names_test.go @@ -3,32 +3,8 @@ package nametransform import ( "bytes" "testing" - - "github.com/rfjakob/gocryptfs/internal/cryptocore" ) -func TestEncryptPathNoIV(t *testing.T) { - var s []string - s = append(s, "foo") - s = append(s, "foo12312312312312312313123123123") - s = append(s, "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890") - - key := make([]byte, cryptocore.KeyLen) - cc := cryptocore.New(key, true, true) - fs := New(cc, true, false) - - for _, n := range s { - c := fs.EncryptPathNoIV(n) - d, err := fs.DecryptPathNoIV(c) - if err != nil { - t.Errorf("Got error from DecryptPathNoIV: %s", err) - } - if d != n { - t.Errorf("Content mismatch, n != d: n=%s c=%s d=%s", n, c, d) - } - } -} - func TestPad16(t *testing.T) { var s [][]byte s = append(s, []byte("foo")) |