public class FrodoKEMEngine
extends java.lang.Object
salted flag: when salted, the seed seedSE is enlarged to 2*len_mu bits and a salt of
2*len_mu bits is folded into the G_2 hash and the shared secret and carried in the ciphertext;
when not salted, len_salt is zero and every salt operation below is a no-op.| Modifier and Type | Field and Description |
|---|---|
static int |
nbar |
| Modifier and Type | Method and Description |
|---|---|
int |
getCipherTextSize() |
static FrodoKEMEngine |
getInstance(FrodoKEMParameters params) |
int |
getPrivateKeySize() |
int |
getPublicKeySize() |
int |
getSessionKeySize() |
void |
kem_dec(byte[] ss,
byte[] ct,
byte[] sk) |
void |
kem_enc(byte[] ct,
byte[] ss,
byte[] pk,
java.security.SecureRandom random) |
void |
kem_keypair(byte[] pk,
byte[] sk,
java.security.SecureRandom random) |
public static final int nbar
public static FrodoKEMEngine getInstance(FrodoKEMParameters params)
public int getCipherTextSize()
public int getSessionKeySize()
public int getPrivateKeySize()
public int getPublicKeySize()
public void kem_keypair(byte[] pk,
byte[] sk,
java.security.SecureRandom random)
public void kem_enc(byte[] ct,
byte[] ss,
byte[] pk,
java.security.SecureRandom random)
public void kem_dec(byte[] ss,
byte[] ct,
byte[] sk)