Skip to content

Commit

Permalink
fix(seg65)
Browse files Browse the repository at this point in the history
  • Loading branch information
zelig committed Mar 4, 2024
1 parent be9a15b commit b14509e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/encryption/chunk_encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b14509e

Please sign in to comment.