qr_code v1.0.4 QRCode.GaloisField
Galios Field GF(256) functions.
Link to this section Summary
Functions
Add two alpha values in GF(256).
Given integer returns alpha exponent. Example
Given alpha exponent returns integer. Example
Link to this section Types
Link to this type
alpha()
alpha()
alpha() :: 0..254
alpha() :: 0..254
Link to this type
value()
value()
value() :: 1..255
value() :: 1..255
Link to this section Functions
Link to this function
add(a1, a2)
Add two alpha values in GF(256).
Example
iex> QRCode.GaloisField.add(10, 251)
6
iex> QRCode.GaloisField.add(10, 13)
23
Link to this function
to_a(integer)
Given integer returns alpha exponent. Example:
iex> QRCode.GaloisField.to_a(2)
1
Link to this function
to_i(alpha)
Given alpha exponent returns integer. Example:
iex> QRCode.GaloisField.to_i(1)
2