Package org.bouncycastle.pqc.math.ntru
Class HRSSPolynomial
- java.lang.Object
-
- org.bouncycastle.pqc.math.ntru.Polynomial
-
- org.bouncycastle.pqc.math.ntru.HRSSPolynomial
-
public class HRSSPolynomial extends Polynomial
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.pqc.math.ntru.Polynomial
coeffs, params
-
-
Constructor Summary
Constructors Constructor Description HRSSPolynomial(NTRUHRSSParameterSet params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlift(Polynomial a)voidr2Inv(Polynomial a)voidrqInv(Polynomial a)voids3Inv(Polynomial a)voidsqFromBytes(byte[] a)Unpack a Sq polynomialbyte[]sqToBytes(int len)Pack Sq polynomial as a byte array-
Methods inherited from class org.bouncycastle.pqc.math.ntru.Polynomial
mod3PhiN, modQPhiN, rqMul, rqSumZeroFromBytes, rqSumZeroToBytes, rqToS3, s3FromBytes, s3Mul, s3ToBytes, sqMul, trinaryZqToZ3, z3ToZq
-
-
-
-
Constructor Detail
-
HRSSPolynomial
public HRSSPolynomial(NTRUHRSSParameterSet params)
-
-
Method Detail
-
sqToBytes
public byte[] sqToBytes(int len)
Description copied from class:PolynomialPack Sq polynomial as a byte array- Specified by:
sqToBytesin classPolynomial- Parameters:
len- array length of packed polynomial- Returns:
- See Also:
- NTRU specification section 1.8.5
-
sqFromBytes
public void sqFromBytes(byte[] a)
Description copied from class:PolynomialUnpack a Sq polynomial- Specified by:
sqFromBytesin classPolynomial- Parameters:
a- byte array of packed polynomial- See Also:
- NTRU specification section 1.8.6
-
lift
public void lift(Polynomial a)
- Specified by:
liftin classPolynomial- See Also:
- NTRU specification section 1.9.3
-
r2Inv
public void r2Inv(Polynomial a)
- Specified by:
r2Invin classPolynomial
-
rqInv
public void rqInv(Polynomial a)
- Specified by:
rqInvin classPolynomial
-
s3Inv
public void s3Inv(Polynomial a)
- Specified by:
s3Invin classPolynomial
-
-