class MLKEMIndCpa extends Object
| Modifier and Type | Field and Description |
|---|---|
int | KyberGenerateMatrixNBlocksKyberGenerateMatrixNBlocks. |
| Constructor and Description |
|---|
MLKEMIndCpa(MLKEMEngine engine)MLKEMIndCpa. |
| Modifier and Type | Method and Description |
|---|---|
byte[] | decrypt(byte[] secretKey,
byte[] cipherText)decrypt. |
byte[] | encrypt(byte[] publicKeyInput,
byte[] msg,
byte[] coins)encrypt. |
(package private) byte[][] | generateKeyPair(byte[] d)Generates IndCpa Key Pair |
void | generateMatrix(PolyVec[] aMatrix,
byte[] seed,
boolean transposed)generateMatrix. |
byte[] | packPublicKey(PolyVec publicKeyPolyVec,
byte[] seed)packPublicKey. |
byte[] | packSecretKey(PolyVec secretKeyPolyVec)packSecretKey. |
byte[] | unpackPublicKey(PolyVec publicKeyPolyVec,
byte[] publicKey)unpackPublicKey. |
void | unpackSecretKey(PolyVec secretKeyPolyVec,
byte[] secretKey)unpackSecretKey. |
public final int KyberGenerateMatrixNBlocks
public MLKEMIndCpa(MLKEMEngine engine)
public byte[] decrypt(byte[] secretKey,
byte[] cipherText)public byte[] encrypt(byte[] publicKeyInput,
byte[] msg,
byte[] coins)byte[][] generateKeyPair(byte[] d)
public void generateMatrix(PolyVec[] aMatrix, byte[] seed, boolean transposed)
public byte[] packPublicKey(PolyVec publicKeyPolyVec, byte[] seed)
public byte[] packSecretKey(PolyVec secretKeyPolyVec)
public byte[] unpackPublicKey(PolyVec publicKeyPolyVec, byte[] publicKey)
public void unpackSecretKey(PolyVec secretKeyPolyVec, byte[] secretKey)