GF128

Members

Static functions

multiply
void multiply(T[] x, in T[] y)

Multiplies x by y using schoolbook multiplication. Result stored in x.

multiplyP
void multiplyP(T[] x)

multiplication by P (only bit 1 = 1)

multiplyP8
void multiplyP8(T[] x)

multiplication by P^8

power
void power(T[] x, ulong pow)

raises x to the power 'pow' by squaring x <- x^pow

shiftRight
void shiftRight(T[] a)

Shift big endian number a 1 bit to the right.

shiftRight8
void shiftRight8(T[] a)

Shift big endian number a 8 bits to the right.

Meta