libffrs.RSi16

class libffrs.RSi16

Reed-Solomon coding over \(GF(65537)\)

Methods

RSi16.__init__

Instantiate a Reed-Solomon encoder with the given configuration

RSi16.encode

Systematic encode

RSi16.rbo

Reverse Bit Order

RSi16.repair

Repair a block with the given error locations

RSi16.synd

Calculate syndromes for the given message and ecc buffers

Attributes

RSi16.block_len

RSi16.block_size

RSi16.ecc_len

RSi16.ecc_size

RSi16.gf

RSi16.interleave

Number of interleaved codewords for block encoding

RSi16.message_len

RSi16.message_size

RSi16.ntt_len

RSi16.ntt_size

RSi16.root

RSi16.rs_block_len

RSi16.rs_block_size

RSi16.rs_ecc_len

RSi16.rs_ecc_size

RSi16.rs_message_len

RSi16.rs_message_size

RSi16.simd_x16

Enable SIMD x16 encoding

RSi16.simd_x4

Enable SIMD x4 encoding

RSi16.simd_x8

Enable SIMD x8 encoding

__init__(self: libffrs.RSi16, block_len: SupportsInt | SupportsIndex, ecc_len: SupportsInt | SupportsIndex, interleave: SupportsInt | SupportsIndex = 1, *, primitive: SupportsInt | SupportsIndex = 3, simd_x4: bool | None = None, simd_x8: bool | None = None, simd_x16: bool | None = None) None

Instantiate a Reed-Solomon encoder with the given configuration

encode(self: libffrs.RSi16, buffer: collections.abc.Buffer) bytearray

Systematic encode

rbo(self: libffrs.RSi16, i: SupportsInt | SupportsIndex) int

Reverse Bit Order

repair(self: libffrs.RSi16, message: collections.abc.Buffer, ecc: collections.abc.Buffer, error_pos: collections.abc.Sequence[SupportsInt | SupportsIndex] | None = None) None

Repair a block with the given error locations

synd(self: libffrs.RSi16, message: collections.abc.Buffer, ecc: collections.abc.Buffer) bytearray

Calculate syndromes for the given message and ecc buffers