GF128

Undocumented in source.

Members

Aliases

T
alias T = ubyte
Undocumented in source.
block
alias block = T[BLOCKLEN / (T.sizeof * 8)]
Undocumented in source.

Manifest constants

BLOCKLEN
enum BLOCKLEN;
Undocumented in source.

Static functions

multiply
void multiply(T[] x, 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.

Variables

ONE
enum T ONE;
Undocumented in source.
R
enum T R;
Undocumented in source.

Meta