Class PolyVec
java.lang.Object
org.bouncycastle.pqc.crypto.mlkem.PolyVec
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) static intcheckModulus(MLKEMEngine engine, byte[] inputBytes) (package private) voidcompressPolyVec(byte[] rBuf, int rOff) (package private) voiddecompressPolyVec(byte[] cBuf, int cOff) (package private) voidfromBytes(byte[] buf, int off) (package private) PolygetVectorIndex(int i) (package private) static voidpointwiseAccountMontgomery(Poly out, PolyVec inp1, PolyVec inp2, MLKEMEngine engine) (package private) void(package private) void(package private) void(package private) voidtoBytes(byte[] buf, int off)
-
Field Details
-
vec
-
-
Constructor Details
-
PolyVec
PolyVec(int K)
-
-
Method Details
-
getVectorIndex
-
polyVecNtt
void polyVecNtt() -
polyVecInverseNttToMont
void polyVecInverseNttToMont() -
compressPolyVec
void compressPolyVec(byte[] rBuf, int rOff) -
decompressPolyVec
void decompressPolyVec(byte[] cBuf, int cOff) -
pointwiseAccountMontgomery
-
reducePoly
void reducePoly() -
addPoly
-
toBytes
void toBytes(byte[] buf, int off) -
fromBytes
void fromBytes(byte[] buf, int off) -
checkModulus
-