aboutsummaryrefslogtreecommitdiff
path: root/internal/nametransform/longnames_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/nametransform/longnames_test.go')
-rw-r--r--internal/nametransform/longnames_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/nametransform/longnames_test.go b/internal/nametransform/longnames_test.go
index 7a4e915..be18f92 100644
--- a/internal/nametransform/longnames_test.go
+++ b/internal/nametransform/longnames_test.go
@@ -34,7 +34,8 @@ func TestRemoveLongNameSuffix(t *testing.T) {
}
func newLognamesTestInstance(longNameMax uint8) *NameTransform {
- key := make([]byte, cryptocore.KeyLen)
+ keyLen := cryptocore.BackendGoGCM.KeyLen
+ key := make([]byte, keyLen)
cCore := cryptocore.New(key, cryptocore.BackendGoGCM, contentenc.DefaultIVBits, true)
return New(cCore.EMECipher, true, longNameMax, true, nil, false)
}