Packages that use Poly
Package
Description
This is a small portion of bouncycastle 1.80 for MLKEM, modified to reduce dependencies.
Uses of Poly in org.bouncycastle.pqc.crypto.mlkem
Fields in org.bouncycastle.pqc.crypto.mlkem declared as PolyModifier and TypeFieldDescription(package private) Poly[]PolyVec.vecThe polynomials held by this vector, in order, always kyberK long.Methods in org.bouncycastle.pqc.crypto.mlkem that return PolyModifier and TypeMethodDescriptionPolyVec.getVectorIndex(int i) Get the polynomial stored at a position in this vector.Methods in org.bouncycastle.pqc.crypto.mlkem with parameters of type PolyModifier and TypeMethodDescriptionvoidAdds another polynomial in place, coefficient by coefficient.static voidMultiply two degree-1 polynomials, scaling the leading product by a stage zeta.static voidPoly.baseMultMontgomery(Poly r, Poly a, Poly b) Multiplies two NTT-domain polynomials into a third, in Montgomery form.static voidPerform ML-KEM CBD sampling.private byte[]MLKEMIndCpa.packCipherText(PolyVec b, Poly v) Packs the two parts into the ciphertext.static voidPolyVec.pointwiseAccountMontgomery(Poly out, PolyVec inp1, PolyVec inp2, MLKEMEngine engine) Multiply two vectors pointwise and sum the products into a polynomial.voidPoly.polySubtract(Poly b) Subtracts another polynomial from this one, in place.private static intMLKEMIndCpa.rejectionSampling(Poly outputBuffer, int coeffOff, int len, byte[] inpBuf, int inpBufLen) Fills the polynomial by rejection sampling.private voidMLKEMIndCpa.unpackCipherText(PolyVec b, Poly v, byte[] cipherText) Unpacks the ciphertext into its two parts.