aboutsummaryrefslogtreecommitdiff
path: root/cryptfs/content_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/content_test.go
parent2f970e1aa6e069a7f0001b23a4aadb54704c5d96 (diff)
Add test.bashv0.1
...also adapt the cryptfs tests for 256 bit long keys
Diffstat (limited to 'cryptfs/content_test.go')
-rw-r--r--cryptfs/content_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cryptfs/content_test.go b/cryptfs/content_test.go
index ab48b21..aa6c9f3 100644
--- a/cryptfs/content_test.go
+++ b/cryptfs/content_test.go
@@ -19,7 +19,7 @@ func TestSplitRange(t *testing.T) {
testRange{65444, 54},
testRange{6654, 8945})
- key := make([]byte, 16)
+ key := make([]byte, KEY_LEN)
f := NewCryptFS(key, true)
for _, r := range ranges {
@@ -42,7 +42,7 @@ func TestCiphertextRange(t *testing.T) {
testRange{65444, 54},
testRange{6654, 8945})
- key := make([]byte, 16)
+ key := make([]byte, KEY_LEN)
f := NewCryptFS(key, true)
for _, r := range ranges {
@@ -60,7 +60,7 @@ func TestCiphertextRange(t *testing.T) {
}
func TestBlockNo(t *testing.T) {
- key := make([]byte, 16)
+ key := make([]byte, KEY_LEN)
f := NewCryptFS(key, true)
b := f.BlockNoCipherOff(788)