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