finite_field_math 1.0.0 copy "finite_field_math: ^1.0.0" to clipboard
finite_field_math: ^1.0.0 copied to clipboard

GF(2^m) Galois field arithmetic for symbol sizes 2..16 with configurable primitive polynomial and primitive element.

finite_field_math #

Pure Dart GF(2^m) Galois field arithmetic for symbol sizes 2 <= m <= 16.

Usage #

import 'package:finite_field_math/finite_field_math.dart';

final finiteField = FiniteField(
  symbolSizeInBits: 8,
  primitivePolynomial: 0x11D,
  primitiveElement: 2,
);

final sum = finiteField.add(0x53, 0xCA);
final product = finiteField.multiply(0x53, 0xCA);

Features #

  • Independent field instances (no process-wide mutable tables)
  • Log/exp table based multiply/divide for efficient arithmetic
  • Validated configuration: symbol size, primitive polynomial, primitive element

License #

MIT — Copyright (c) 2026 Hasan M. Hallak

1
likes
150
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

GF(2^m) Galois field arithmetic for symbol sizes 2..16 with configurable primitive polynomial and primitive element.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on finite_field_math