NIST specifies that they removed a hash in the encapsulation/decapsulation methods.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static enum | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static KeyEncapsulationMethod. | |
| pack-priv static KeyEncapsulationMethod. |
| MLKEM | back to summary |
|---|---|
| private MLKEM() | |
| getClient | back to summary |
|---|---|
| pack-priv static KeyEncapsulationMethod. | |
| getServer | back to summary |
|---|---|
| pack-priv static KeyEncapsulationMethod. | |
| Modifier and Type | Field and Description |
|---|---|
| private MLKEMExtractor | |
| private final MLKEM. | |
| private MLKEMPublicKeyParameters |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | extractSecret(byte[]
ciphertext to process. encapsulated)Implements org. Extracts the secret from an encapsulation ciphertext. |
| public int | getEncapsulationLength()
Implements org. Gets the required encapsulation length in bytes. |
| public byte[] | getPublicKey()
Implements org. Gets the KEM public key. |
| public void | init()
Implements org. Initializes the KEM and generates a new key pair. |
| extractor | back to summary |
|---|---|
| private MLKEMExtractor extractor | |
| parameters | back to summary |
|---|---|
| private final MLKEM. | |
| publicKey | back to summary |
|---|---|
| private MLKEMPublicKeyParameters publicKey | |
| Client | back to summary |
|---|---|
| pack-priv Client(MLKEM. | |
| extractSecret | back to summary |
|---|---|
| public byte[] extractSecret(byte[] encapsulated) Implements org. Doc from org. Extracts the secret from an encapsulation ciphertext.
| |
| getEncapsulationLength | back to summary |
|---|---|
| public int getEncapsulationLength() Implements org. Doc from org. Gets the required encapsulation length in bytes.
| |
| getPublicKey | back to summary |
|---|---|
| public byte[] getPublicKey() Implements org. Doc from org. Gets the KEM public key.
| |
| init | back to summary |
|---|---|
| public void init() Implements org. Doc from org. Initializes the KEM and generates a new key pair.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final MLKEM. | |
| public static final MLKEM. | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract Object | |
| pack-priv int | |
| public boolean | |
| public static MLKEM. | |
| public static MLKEM. |
| mlkem1024 | back to summary |
|---|---|
| public static final MLKEM. | |
| mlkem768 | back to summary |
|---|---|
| public static final MLKEM. | |
| publicKeySize | back to summary |
|---|---|
| private final int publicKeySize | |
| Parameters | back to summary |
|---|---|
| private Parameters(int publicKeySize) | |
| getMLKEMParameters | back to summary |
|---|---|
| pack-priv abstract Object getMLKEMParameters() | |
| getPublicKeySize | back to summary |
|---|---|
| pack-priv int getPublicKeySize() | |
| isSupported | back to summary |
|---|---|
| public boolean isSupported() Implements org.
| |
| valueOf | back to summary |
|---|---|
| public static MLKEM. | |
| values | back to summary |
|---|---|
| public static MLKEM. | |
| Modifier and Type | Field and Description |
|---|---|
| private final MLKEM. | |
| private SecretWithEncapsulation |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | getEncapsulation()
Implements org. Retrieves the encapsulation of the secret. |
| public int | getPublicKeyLength()
Implements org. Retrieves the required length of the KEM public key, in bytes. |
| public byte[] | getSecret()
Implements org. Retrieves the secret. |
| public byte[] | init(byte[]
data received from the client, expected to contain the public key at the
start publicKey)Implements org. Initializes the KEM with a public key received from a client and prepares an encapsulated secret. |
| parameters | back to summary |
|---|---|
| private final MLKEM. | |
| value | back to summary |
|---|---|
| private SecretWithEncapsulation value | |
| Server | back to summary |
|---|---|
| pack-priv Server(MLKEM. | |
| getEncapsulation | back to summary |
|---|---|
| public byte[] getEncapsulation() Implements org. Doc from org. Retrieves the encapsulation of the secret.
| |
| getPublicKeyLength | back to summary |
|---|---|
| public int getPublicKeyLength() Implements org. Doc from org. Retrieves the required length of the KEM public key, in bytes.
| |
| getSecret | back to summary |
|---|---|
| public byte[] getSecret() Implements org. Doc from org. Retrieves the secret.
| |
| init | back to summary |
|---|---|
| public byte[] init(byte[] publicKey) Implements org. Doc from org. Initializes the KEM with a public key received from a client and prepares an encapsulated secret.
| |