Packages that use PolyVec
Package
Description
This is a small portion of bouncycastle 1.80 for MLKEM, modified to reduce dependencies.
Uses of PolyVec in org.bouncycastle.pqc.crypto.mlkem
Methods in org.bouncycastle.pqc.crypto.mlkem with parameters of type PolyVecModifier and TypeMethodDescriptionvoidAdd another vector's coefficients into this one, in place.voidMLKEMIndCpa.generateMatrix(PolyVec[] aMatrix, byte[] seed, boolean transposed) Expands a 32-byte seed into the KyberK by KyberK public matrix A by rejection sampling.private byte[]MLKEMIndCpa.packCipherText(PolyVec b, Poly v) Packs the two parts into the ciphertext.byte[]MLKEMIndCpa.packPublicKey(PolyVec publicKeyPolyVec, byte[] seed) Packs a public key vector and its seed into the encapsulation key wire format.byte[]MLKEMIndCpa.packSecretKey(PolyVec secretKeyPolyVec) Packs a secret key vector into the decapsulation key wire format.static voidPolyVec.pointwiseAccountMontgomery(Poly out, PolyVec inp1, PolyVec inp2, MLKEMEngine engine) Multiply two vectors pointwise and sum the products into a polynomial.private voidMLKEMIndCpa.unpackCipherText(PolyVec b, Poly v, byte[] cipherText) Unpacks the ciphertext into its two parts.byte[]MLKEMIndCpa.unpackPublicKey(PolyVec publicKeyPolyVec, byte[] publicKey) Splits a packed encapsulation key into its key vector and its trailing public seed.voidMLKEMIndCpa.unpackSecretKey(PolyVec secretKeyPolyVec, byte[] secretKey) Deserializes a packed decapsulation key into the destination vector.