class GF2_192_Poly extends AnyRef
- Alphabetic
- By Inheritance
- GF2_192_Poly
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
GF2_192_Poly(maxDeg: Int, constantTerm: Int)
Constructs a constant polynomial
Constructs a constant polynomial
- maxDeg
the maximum degree this polynomial could possibly have (to allocate space)
- constantTerm
the polynomial is initially created with degree 0 and given constantTerm
-
new
GF2_192_Poly(coeff0: Array[Byte], moreCoeffs: Array[Byte])
Constructs the polynomial given the byte array representation of the coefficients.
Constructs the polynomial given the byte array representation of the coefficients. Coefficient of degree zero is given separately. Each coefficient should be given as a 24-byte representation of a GF2_192 value. Coefficient of degree 1 should start at moreCoeffs[0].
- coeff0
byte array representing lowest coefficient (24 bytes)
- moreCoeffs
byte array with concatenation of byte-converted coefficients (24 bytes each) from degree 1 to the highest
- new GF2_192_Poly()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
coeff0Bytes: Array[Byte]
- returns
The degree-0 coefficient, converted to an array of 24 bytes
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- GF2_192_Poly → AnyRef → Any
-
def
evaluate(x: Byte): GF2_192
Evaluates the polynomial at a given point
Evaluates the polynomial at a given point
- x
the last byte of a field element (all other bits are assumed to be 0)
- returns
the value of this polynomial evaluated at the field element
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- GF2_192_Poly → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toByteArray(coeff0: Boolean): Array[Byte]
Returns a byte array that contains the concatenation of all the coefficients (except possibly the degree-0 coefficient, which is omitted if coeff0 is false).
Returns a byte array that contains the concatenation of all the coefficients (except possibly the degree-0 coefficient, which is omitted if coeff0 is false). Lowest-degree coefficient (0 or 1 depending on coeff0) starts at index 0 of the returned array. Each coefficient takes 24 bytes, for a total of degree*24 bytes if coeff0 is false, or (degree+1)*24 bytes if coeff0 is true
- coeff0
whether to include coeff0
- returns
array of all coefficients (except possibly 0th depending on coeff0)
-
def
toString(): String
- returns
this represented in usual polynomial notation (but possibly leading 0s), with X as the free variable
- Definition Classes
- GF2_192_Poly → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()