Expand description
Vendored version of reed_solomon_simd.
§Changes vs. Upstream
- Moved the crate into
commonware_cryptography::reed_solomonand rewrote internalcrate::paths accordingly. - Retained the upstream
LICENSEfile, including the BSD-3-Clause notice for Leopard-RS. - Removed the build script and README rustdoc generation.
- Removed upstream examples. Kept upstream-style benchmarks under Commonware’s benchmark layout and naming rules.
- Uses workspace dependencies and
commonware_formattingin the test harness. - Uses
thiserrorfor error display formatting. - Renamed upstream
ReedSolomonEncoderandReedSolomonDecodertoEncoderandDecoder. - Uses plain code references for cfg-gated SIMD engine docs so rustdoc works on all targets.
Re-exports§
pub use self::engine::SHARD_CHUNK_BYTES;
Modules§
- algorithm
- Algorithm documentation.
- engine
- Low-level building blocks for Reed-Solomon encoding/decoding.
- rate
- Advanced encoding/decoding using chosen
EngineandRate.
Structs§
- Decoder
- Reed-Solomon decoder using
DefaultEngineandDefaultRate. - Decoder
Result - The restored original shards from a decode that ran (an original was missing).
- Encoder
- Reed-Solomon encoder using
DefaultEngineandDefaultRate. - Encoder
Result - Result of encoding. Contains the generated recovery shards.
- Originals
- Iterator over restored original shards and their indexes.
- Recoveries
- Iterator over restored recovery shards and their indexes.
- Recovery
- Iterator over generated recovery shards.
- Recovery
Decoder Result - The restored shards from a successful
Decoder::decode_with_recovery, exposing both the restored original shards (likeDecoderResult) and the reconstructed recovery shards.
Enums§
- Error
- Represents all possible errors that can occur in this library.