Package org.bouncycastle.pqc.math.ntru
Class HRSSPolynomial
java.lang.Object
org.bouncycastle.pqc.math.ntru.Polynomial
org.bouncycastle.pqc.math.ntru.HRSSPolynomial
- Direct Known Subclasses:
HRSS1373Polynomial
-
Field Summary
Fields inherited from class org.bouncycastle.pqc.math.ntru.Polynomial
coeffs, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlift(Polynomial a) voidsqFromBytes(byte[] a) Unpack a Sq polynomialbyte[]sqToBytes(int len) Pack Sq polynomial as a byte arrayMethods inherited from class org.bouncycastle.pqc.math.ntru.Polynomial
mod3PhiN, modQPhiN, r2Inv, rqInv, rqMul, rqSumZeroFromBytes, rqSumZeroToBytes, rqToS3, s3FromBytes, s3Inv, s3Mul, s3ToBytes, s3ToBytes, sqMul, trinaryZqToZ3, z3ToZq
-
Constructor Details
-
HRSSPolynomial
-
-
Method Details
-
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:
-
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:
-
lift
- Specified by:
liftin classPolynomial- Parameters:
a-- See Also:
-