From c3a9ab01c66411f39c3fcee414e4194d3eb918a7 Mon Sep 17 00:00:00 2001 From: zelig Date: Mon, 4 Mar 2024 12:56:02 +0100 Subject: [PATCH] fix(seg65): fix seg65 --- pkg/encryption/chunk_encryption.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/encryption/chunk_encryption.go b/pkg/encryption/chunk_encryption.go index 0cb6a901083..da982bc139b 100644 --- a/pkg/encryption/chunk_encryption.go +++ b/pkg/encryption/chunk_encryption.go @@ -32,8 +32,7 @@ func (c *chunkEncrypter) EncryptChunk(chunkData []byte) (Key, []byte, []byte, er } func newSpanEncryption(key Key) Interface { - refSize := int64(swarm.HashSize + KeyLength) - return New(key, 0, uint32(swarm.ChunkSize/refSize), sha3.NewLegacyKeccak256) + return New(key, 0, uint32(swarm.ChunkSize/KeyLength), sha3.NewLegacyKeccak256) } func newDataEncryption(key Key) Interface {