galois.GF2m_factory

galois.GF2m_factory(m, mode='auto', rebuild=False)[source]

Factory function to construct Galois field array classes of type GF(2^m).

Parameters
  • p (int) – The prime characteristic of the field GF(2^m).

  • rebuild (bool, optional) – A flag to force a rebuild of the class and its lookup tables. Default is False which will return the cached, previously-built class if it exists.

Returns

A new Galois field class that is a sublcass of galois.GF2mBase.

Return type

galois.GF2mBase