public static interface KeyEncapsulationMethod.Server
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncapsulation()
Retrieves the encapsulation of the secret.
|
byte[] |
getSecret()
Retrieves the secret.
|
byte[] |
init(byte[] publicKey)
Initializes the KEM with a public key received from a client and prepares an encapsulated secret.
|
byte[] init(byte[] publicKey)
publicKey - data received from the client, expected to contain the public key at the
startpublicKey after the public keyIllegalArgumentException - if publicKey does not have enough bytes for a valid public keyNullPointerException - if publicKey == nullbyte[] getSecret()
byte[] getEncapsulation()
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.