GenericGF

class GenericGF(primitive: Int, size: Int, generatorBase: Int)

This class contains utility methods for performing mathematical operations over the Galois Fields. Operations use a given primitive polynomial in calculations.

Throughout this package, elements of the GF are represented as an int for convenience and speed (but at the cost of memory).

The size of the GF is assumed to be a power of two.

Constructors

Link copied to clipboard
constructor(primitive: Int, size: Int, generatorBase: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun buildMonomial(degree: Int, coefficient: Int): GenericGFPoly
Link copied to clipboard
fun exp(a: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getSize(): Int
Link copied to clipboard
Link copied to clipboard
fun inverse(a: Int): Int
Link copied to clipboard
fun log(a: Int): Int
Link copied to clipboard
fun multiply(a: Int, b: Int): Int
Link copied to clipboard
open override fun toString(): String