summaryrefslogtreecommitdiff
path: root/cryptfs/names_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-10-07 22:08:30 +0200
committerJakob Unterwurzacher2015-10-07 22:09:34 +0200
commit440abcbac63a5994d4bac1b5dfcf838aaaefdbd7 (patch)
treeebc6d165c498d7b9bf707580aecfe7c7f7e7d09d /cryptfs/names_test.go
parent2f970e1aa6e069a7f0001b23a4aadb54704c5d96 (diff)
Add test.bashv0.1
...also adapt the cryptfs tests for 256 bit long keys
Diffstat (limited to 'cryptfs/names_test.go')
-rw-r--r--cryptfs/names_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptfs/names_test.go b/cryptfs/names_test.go
index dd57242..14c15c1 100644
--- a/cryptfs/names_test.go
+++ b/cryptfs/names_test.go
@@ -11,7 +11,7 @@ func TestTranslatePath(t *testing.T) {
s = append(s, "foo12312312312312312313123123123")
s = append(s, "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890")
- key := make([]byte, 16)
+ key := make([]byte, KEY_LEN)
fs := NewCryptFS(key, true)
for _, n := range s {
@@ -33,7 +33,7 @@ func TestPad16(t *testing.T) {
s = append(s, []byte("12345678901234567"))
s = append(s, []byte("12345678901234567abcdefg"))
- key := make([]byte, 16)
+ key := make([]byte, KEY_LEN)
fs := NewCryptFS(key, true)
for i := range s {