libffrs.RS256¶
- class libffrs.RS256¶
Reed-Solomon coding over \(GF(2^8)\)
Methods
Instantiate a Reed-Solomon encoder with the given configuration
Encode message, return ecc
Repair message + ecc
Attributes
RS256.block_lenRS256.block_sizeRS256.ecc_lenRS256.ecc_sizeRS256.generatorRS256.generator_rootsRS256.gfRS256.message_lenRS256.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