Uses of Class
org.bouncycastle.pqc.math.ntru.polynomial.IntegerPolynomial
-
Packages that use IntegerPolynomial Package Description org.bouncycastle.pqc.crypto.ntru org.bouncycastle.pqc.math.ntru.polynomial -
-
Uses of IntegerPolynomial in org.bouncycastle.pqc.crypto.ntru
Fields in org.bouncycastle.pqc.crypto.ntru declared as IntegerPolynomial Modifier and Type Field Description IntegerPolynomial
NTRUSigningKeyPairGenerator.FGBasis. F
IntegerPolynomial
NTRUEncryptionPrivateKeyParameters. fp
IntegerPolynomial
NTRUSigningKeyPairGenerator.FGBasis. G
IntegerPolynomial
NTRUEncryptionPrivateKeyParameters. h
IntegerPolynomial
NTRUEncryptionPublicKeyParameters. h
IntegerPolynomial
NTRUSigningPrivateKeyParameters.Basis. h
IntegerPolynomial
NTRUSigningPublicKeyParameters. h
Methods in org.bouncycastle.pqc.crypto.ntru that return IntegerPolynomial Modifier and Type Method Description protected IntegerPolynomial
NTRUSigner. createMsgRep(byte[] msgHash, int r)
Deprecated.protected IntegerPolynomial
NTRUEngine. decrypt(IntegerPolynomial e, Polynomial priv_t, IntegerPolynomial priv_fp)
protected IntegerPolynomial
NTRUEngine. encrypt(IntegerPolynomial m, TernaryPolynomial r, IntegerPolynomial pubKey)
Methods in org.bouncycastle.pqc.crypto.ntru with parameters of type IntegerPolynomial Modifier and Type Method Description protected IntegerPolynomial
NTRUEngine. decrypt(IntegerPolynomial e, Polynomial priv_t, IntegerPolynomial priv_fp)
protected IntegerPolynomial
NTRUEngine. encrypt(IntegerPolynomial m, TernaryPolynomial r, IntegerPolynomial pubKey)
Constructors in org.bouncycastle.pqc.crypto.ntru with parameters of type IntegerPolynomial Constructor Description Basis(Polynomial f, Polynomial fPrime, IntegerPolynomial h, NTRUSigningKeyGenerationParameters params)
Constructs a new basis from polynomialsf, f', h
.NTRUEncryptionPrivateKeyParameters(IntegerPolynomial h, Polynomial t, IntegerPolynomial fp, NTRUEncryptionParameters params)
Constructs a new private key from a polynomialNTRUEncryptionPublicKeyParameters(IntegerPolynomial h, NTRUEncryptionParameters params)
Constructs a new public key from a polynomialNTRUSigningPublicKeyParameters(IntegerPolynomial h, NTRUSigningParameters params)
Constructs a new public key from a polynomial -
Uses of IntegerPolynomial in org.bouncycastle.pqc.math.ntru.polynomial
Subclasses of IntegerPolynomial in org.bouncycastle.pqc.math.ntru.polynomial Modifier and Type Class Description class
DenseTernaryPolynomial
ATernaryPolynomial
with a "high" number of nonzero coefficients.Methods in org.bouncycastle.pqc.math.ntru.polynomial that return IntegerPolynomial Modifier and Type Method Description static IntegerPolynomial
IntegerPolynomial. fromBinary(byte[] data, int N, int q)
Returns a polynomial with N coefficients between0
andq-1
.
q
must be a power of 2.
Ignores any excess bytes.static IntegerPolynomial
IntegerPolynomial. fromBinary(InputStream is, int N, int q)
Returns a polynomial with N coefficients between0
andq-1
.
q
must be a power of 2.
Ignores any excess bytes.static IntegerPolynomial
IntegerPolynomial. fromBinary3Sves(byte[] data, int N)
Decodes a byte array to a polynomial withN
ternary coefficients
Ignores any excess bytes.static IntegerPolynomial
IntegerPolynomial. fromBinary3Tight(byte[] b, int N)
Converts a byte array produced bytoBinary3Tight()
to a polynomial.static IntegerPolynomial
IntegerPolynomial. fromBinary3Tight(InputStream is, int N)
Reads data produced bytoBinary3Tight()
from an input stream and converts it to a polynomial.IntegerPolynomial
IntegerPolynomial. invertF3()
Computes the inverse mod 3.IntegerPolynomial
IntegerPolynomial. invertFq(int q)
Computes the inverse modq; q
must be a power of 2.
Returnsnull
if the polynomial is not invertible.IntegerPolynomial
DenseTernaryPolynomial. mult(IntegerPolynomial poly2, int modulus)
IntegerPolynomial
IntegerPolynomial. mult(IntegerPolynomial poly2)
Multiplies the polynomial with another, taking the indices mod NIntegerPolynomial
IntegerPolynomial. mult(IntegerPolynomial poly2, int modulus)
Multiplies the polynomial with another, taking the values mod modulus and the indices mod NIntegerPolynomial
Polynomial. mult(IntegerPolynomial poly2)
Multiplies the polynomial by anIntegerPolynomial
, taking the indices modN
.IntegerPolynomial
Polynomial. mult(IntegerPolynomial poly2, int modulus)
Multiplies the polynomial by anIntegerPolynomial
, taking the coefficient values modmodulus
and the indices modN
.IntegerPolynomial
ProductFormPolynomial. mult(IntegerPolynomial b)
IntegerPolynomial
ProductFormPolynomial. mult(IntegerPolynomial poly2, int modulus)
IntegerPolynomial
SparseTernaryPolynomial. mult(IntegerPolynomial poly2)
IntegerPolynomial
SparseTernaryPolynomial. mult(IntegerPolynomial poly2, int modulus)
IntegerPolynomial
TernaryPolynomial. mult(IntegerPolynomial poly2)
Multiplies the polynomial by anIntegerPolynomial
, taking the indices mod NIntegerPolynomial
IntegerPolynomial. toIntegerPolynomial()
IntegerPolynomial
LongPolynomial2. toIntegerPolynomial()
IntegerPolynomial
LongPolynomial5. toIntegerPolynomial()
IntegerPolynomial
Polynomial. toIntegerPolynomial()
Returns a polynomial that is equal to this polynomial (in the sense thatPolynomial.mult(IntegerPolynomial, int)
returns equalIntegerPolynomial
s).IntegerPolynomial
ProductFormPolynomial. toIntegerPolynomial()
IntegerPolynomial
SparseTernaryPolynomial. toIntegerPolynomial()
Methods in org.bouncycastle.pqc.math.ntru.polynomial with parameters of type IntegerPolynomial Modifier and Type Method Description void
IntegerPolynomial. add(IntegerPolynomial b)
Adds another polynomial which can have a different number of coefficients.void
IntegerPolynomial. add(IntegerPolynomial b, int modulus)
Adds another polynomial which can have a different number of coefficients, and takes the coefficient values modmodulus
.IntegerPolynomial
DenseTernaryPolynomial. mult(IntegerPolynomial poly2, int modulus)
IntegerPolynomial
IntegerPolynomial. mult(IntegerPolynomial poly2)
Multiplies the polynomial with another, taking the indices mod NIntegerPolynomial
IntegerPolynomial. mult(IntegerPolynomial poly2, int modulus)
Multiplies the polynomial with another, taking the values mod modulus and the indices mod NIntegerPolynomial
Polynomial. mult(IntegerPolynomial poly2)
Multiplies the polynomial by anIntegerPolynomial
, taking the indices modN
.IntegerPolynomial
Polynomial. mult(IntegerPolynomial poly2, int modulus)
Multiplies the polynomial by anIntegerPolynomial
, taking the coefficient values modmodulus
and the indices modN
.IntegerPolynomial
ProductFormPolynomial. mult(IntegerPolynomial b)
IntegerPolynomial
ProductFormPolynomial. mult(IntegerPolynomial poly2, int modulus)
IntegerPolynomial
SparseTernaryPolynomial. mult(IntegerPolynomial poly2)
IntegerPolynomial
SparseTernaryPolynomial. mult(IntegerPolynomial poly2, int modulus)
IntegerPolynomial
TernaryPolynomial. mult(IntegerPolynomial poly2)
Multiplies the polynomial by anIntegerPolynomial
, taking the indices mod Nvoid
IntegerPolynomial. sub(IntegerPolynomial b)
Subtracts another polynomial which can have a different number of coefficients.void
IntegerPolynomial. sub(IntegerPolynomial b, int modulus)
Subtracts another polynomial which can have a different number of coefficients, and takes the coefficient values modmodulus
.Constructors in org.bouncycastle.pqc.math.ntru.polynomial with parameters of type IntegerPolynomial Constructor Description BigIntPolynomial(IntegerPolynomial p)
Constructs aBigIntPolynomial
from aIntegerPolynomial
.DenseTernaryPolynomial(IntegerPolynomial intPoly)
Constructs aDenseTernaryPolynomial
from aIntegerPolynomial
.LongPolynomial2(IntegerPolynomial p)
Constructs aLongPolynomial2
from aIntegerPolynomial
.LongPolynomial5(IntegerPolynomial p)
Constructs aLongPolynomial5
from aIntegerPolynomial
.SparseTernaryPolynomial(IntegerPolynomial intPoly)
Constructs aDenseTernaryPolynomial
from aIntegerPolynomial
.
-