public class CMCEEngine
extends java.lang.Object
pc
flag: when pc, a 32-byte confirmation C1 = Hash(2, e) is appended to the ciphertext and the
session key is hashed over the full C0 || C1. The semi-systematic "f" key-generation variant is
selected by the usePivots flag.| Modifier and Type | Method and Description |
|---|---|
int |
getCipherTextSize() |
static CMCEEngine |
getInstance(CMCEParameters params) |
int |
getPrivateKeySize() |
int |
getPublicKeySize() |
int |
getSessionKeySize() |
int |
kem_dec(byte[] key,
byte[] cipher_text,
byte[] sk) |
int |
kem_enc(byte[] cipher_text,
byte[] key,
byte[] pk,
java.security.SecureRandom random) |
void |
kem_keypair(byte[] pk,
byte[] sk,
java.security.SecureRandom random) |
public int getPrivateKeySize()
public int getPublicKeySize()
public int getCipherTextSize()
public static CMCEEngine getInstance(CMCEParameters params)
public void kem_keypair(byte[] pk,
byte[] sk,
java.security.SecureRandom random)
public int kem_enc(byte[] cipher_text,
byte[] key,
byte[] pk,
java.security.SecureRandom random)
public int kem_dec(byte[] key,
byte[] cipher_text,
byte[] sk)
public int getSessionKeySize()