| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean |
| SNTRUP761 | back to summary |
|---|---|
| private SNTRUP761() | |
| isSupported | back to summary |
|---|---|
| pack-priv static boolean isSupported() | |
| Modifier and Type | Field and Description |
|---|---|
| private SNTRUPrimeKEMExtractor | |
| private SNTRUPrimePublicKeyParameters |
| 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 SNTRUPrimeKEMExtractor extractor | |
| publicKey | back to summary |
|---|---|
| private SNTRUPrimePublicKeyParameters publicKey | |
| Client | back to summary |
|---|---|
| pack-priv Client() | |
| 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 |
|---|---|
| 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. |
| value | back to summary |
|---|---|
| private SecretWithEncapsulation value | |
| Server | back to summary |
|---|---|
| pack-priv Server() | |
| 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.
| |