| Modifier and Type | Class and Description |
|---|---|
| public static interface | KeyEncapsulationMethod.
Client-side KEM operations. |
| public static interface | KeyEncapsulationMethod.
Server-side KEM operations. |
| Modifier and Type | Method and Description |
|---|---|
| public KeyEncapsulationMethod. | |
| public KeyEncapsulationMethod. |
| getClient | back to summary |
|---|---|
| public KeyEncapsulationMethod. | |
| getServer | back to summary |
|---|---|
| public KeyEncapsulationMethod. | |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the secret from an encapsulation ciphertext.ciphertext to process. encapsulated)Extracts the secret from an encapsulation ciphertext. |
| public int | Returns: the length required for a valid encapsulation ciphertext.Gets the required encapsulation length in bytes. |
| public byte[] | |
| public void |
| extractSecret | back to summary |
|---|---|
| public byte[] extractSecret(byte[] encapsulated) Extracts the secret from an encapsulation ciphertext.
| |
| getEncapsulationLength | back to summary |
|---|---|
| public int getEncapsulationLength() Gets the required encapsulation length in bytes.
| |
| getPublicKey | back to summary |
|---|---|
| public byte[] getPublicKey() Gets the KEM public key.
| |
| init | back to summary |
|---|---|
| public void init() Initializes the KEM and generates a new key pair. | |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the encapsulation of the secret that may be sent to the clientRetrieves the encapsulation of the secret. |
| public int | Returns: the length of the keyRetrieves the required length of the KEM public key, in bytes. |
| public byte[] | |
| public byte[] | Returns: the remaining bytes ofpublicKey after the public keydata received from the client, expected to contain the public key at the
start publicKey)Initializes the KEM with a public key received from a client and prepares an encapsulated secret. |
| getEncapsulation | back to summary |
|---|---|
| public byte[] getEncapsulation() Retrieves the encapsulation of the secret.
| |
| getPublicKeyLength | back to summary |
|---|---|
| public int getPublicKeyLength() Retrieves the required length of the KEM public key, in bytes.
| |
| getSecret | back to summary |
|---|---|
| public byte[] getSecret() Retrieves the secret.
| |
| init | back to summary |
|---|---|
| public byte[] init(byte[] publicKey) Initializes the KEM with a public key received from a client and prepares an encapsulated secret.
| |