|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.kems.cmce.CMCEEngine
The Classic McEliece KEM as standardised in ISO/IEC 18033-2:2006/Amd 2:2026, Clause 13. A single engine implements both the non-pc construction (Encapsulation 13.12.2 / Decapsulation 13.13.2) and the pc ("plaintext confirmation") construction (13.12.3 / 13.13.3), selected by the 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 flag.
| Method Summary | |
int |
getCipherTextSize()
Deprecated. |
static CMCEEngine |
getInstance(CMCEParameters params)
Deprecated. |
int |
getPrivateKeySize()
Deprecated. |
int |
getPublicKeySize()
Deprecated. |
int |
getSessionKeySize()
Deprecated. |
int |
kem_dec(byte[] key,
byte[] cipher_text,
byte[] sk)
Deprecated. |
int |
kem_enc(byte[] cipher_text,
byte[] key,
byte[] pk,
java.security.SecureRandom random)
Deprecated. |
void |
kem_keypair(byte[] pk,
byte[] sk,
java.security.SecureRandom random)
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
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()
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||