libffrs.RS256

class libffrs.RS256

Reed-Solomon coding over \(GF(2^8)\)

Methods

RS256.__init__

Instantiate a Reed-Solomon encoder with the given configuration

RS256.encode

Encode message, return ecc

RS256.repair

Repair message + ecc

Attributes

RS256.block_len

RS256.block_size

RS256.ecc_len

RS256.ecc_size

RS256.generator

RS256.generator_roots

RS256.gf

RS256.message_len

RS256.message_size

__init__(self: libffrs.RS256, block_len: SupportsInt | SupportsIndex | None = None, message_len: SupportsInt | SupportsIndex | None = None, ecc_len: SupportsInt | SupportsIndex | None = None, primitive: SupportsInt | SupportsIndex = 2, polynomial: SupportsInt | SupportsIndex = 285) None

Instantiate a Reed-Solomon encoder with the given configuration

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

Encode message, return ecc

repair(self: libffrs.RS256, buffer: collections.abc.Buffer, ecc: collections.abc.Buffer) bool

Repair message + ecc