klauspost / reedsolomon

Reed-Solomon Erasure Coding in Go
MIT License
1.87k stars 246 forks source link

Consider introducing a new error when shard size is not a multiple of 64 #242

Closed rootulp closed 1 year ago

rootulp commented 1 year ago

Context

https://github.com/klauspost/reedsolomon/blob/a6d2e3df50e427392c686407c75ded9aafecb5d0/leopard8.go#L136-L138

Problem

I observed the error shard sizes do not match when the shards in the test data I'm using actually do all match in length (they all have length 520 bytes).

Proposal

Introduce a new error that states something like shard size must be a multiple of 64 bytes