Top Description Methods
org.bouncycastle.pqc.legacy.math.ntru.polynomial

public Interface TernaryPolynomial

extends Polynomial
Known Direct Implementers
org.bouncycastle.pqc.legacy.math.ntru.polynomial.DenseTernaryPolynomial, org.bouncycastle.pqc.legacy.math.ntru.polynomial.SparseTernaryPolynomial

A polynomial whose coefficients are all equal to -1, 0, or 1

Method Summary

Modifier and TypeMethod and Description
public void
public int[]
public int[]
public IntegerPolynomial
mult(IntegerPolynomial
a polynomial
poly2
)

Redeclares org.bouncycastle.pqc.legacy.math.ntru.polynomial.Polynomial.mult.

Multiplies the polynomial by an IntegerPolynomial, taking the indices mod N
public int
size()

Returns the maximum number of coefficients the polynomial can have

Inherited from org.bouncycastle.pqc.legacy.math.ntru.polynomial.Polynomial:
multmulttoIntegerPolynomial

Method Detail

clearback to summary
public void clear()
getNegOnesback to summary
public int[] getNegOnes()
getOnesback to summary
public int[] getOnes()
multback to summary
public IntegerPolynomial mult(IntegerPolynomial poly2)

Redeclares org.bouncycastle.pqc.legacy.math.ntru.polynomial.Polynomial.mult.

Multiplies the polynomial by an IntegerPolynomial, taking the indices mod N

Parameters
poly2:IntegerPolynomial

Doc from org.bouncycastle.pqc.legacy.math.ntru.polynomial.Polynomial.mult.

a polynomial

Returns:IntegerPolynomial

Doc from org.bouncycastle.pqc.legacy.math.ntru.polynomial.Polynomial.mult.

the product of the two polynomials

sizeback to summary
public int size()

Returns the maximum number of coefficients the polynomial can have