public final class MLKEM extends Object
| Modifier and Type | Field and Description |
|---|---|
static KeyFactory |
MLKEM1024KeyFactory |
static KeyFactory |
MLKEM512KeyFactory
all non-threaded for now
|
static KeyFactory |
MLKEM768KeyFactory |
| Constructor and Description |
|---|
MLKEM() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decaps(EncType type,
byte[] ciphertext,
byte[] decapkey)
Alice side
Note that this will not fail???
|
static byte[][] |
encaps(EncType type,
byte[] pub)
Bob side
|
static byte[][] |
generateKeys(EncType type)
Alice side
|
static KeyPair |
getKeys(EncType type)
Alice side
|
public static final KeyFactory MLKEM1024KeyFactory
public static final KeyFactory MLKEM512KeyFactory
public static final KeyFactory MLKEM768KeyFactory
public static byte[] decaps(EncType type, byte[] ciphertext, byte[] decapkey) throws GeneralSecurityException
GeneralSecurityExceptionpublic static byte[][] encaps(EncType type, byte[] pub) throws GeneralSecurityException
GeneralSecurityExceptionpublic static byte[][] generateKeys(EncType type) throws GeneralSecurityException
type - must be one of the internal types MLKEM*_INTGeneralSecurityExceptionpublic static KeyPair getKeys(EncType type) throws GeneralSecurityException
type - must be one of the internal types MLKEM*_INTGeneralSecurityException