Skip to content

Commit

Permalink
chore: decrypt_store
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed Mar 13, 2024
1 parent c3a9ab0 commit bbebeea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/encryption/store/decrypt_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ func decrypt(chunkData []byte, key encryption.Key) ([]byte, []byte, error) {
}

func newSpanEncryption(key encryption.Key) encryption.Interface {
refSize := int64(swarm.HashSize + encryption.KeyLength)
return encryption.New(key, 0, uint32(swarm.ChunkSize/refSize), sha3.NewLegacyKeccak256)
return encryption.New(key, 0, uint32(swarm.ChunkSize/encryption.KeyLength), sha3.NewLegacyKeccak256)
}

func newDataEncryption(key encryption.Key) encryption.Interface {
Expand Down

0 comments on commit bbebeea

Please sign in to comment.