Skip to content

feat: arbitrary GF(2^k) support #11

Description

@lonerapier

Extend beyond GF(256) to arbitrary binary extension fields (GF(2⁴), GF(2⁸), GF(2¹⁶), etc.) for flexible security/performance trade-offs.

Approach

  • Generalize field implementation to support configurable polynomial degrees.
  • Use const generics for GF types.
  • Maintain compile-time irreducible polynomial validation.

Tasks:

  • Refactor current GF256 module into generic gf2k crate or use an audited field crate.
  • Define list of supported irreducible polynomials.
  • Add tests and benches for multiple k values.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions