public static interface KeyEncapsulationMethod.Client
| Modifier and Type | Method and Description |
|---|---|
byte[] |
extractSecret(byte[] encapsulated)
Extracts the secret from an encapsulation ciphertext.
|
int |
getEncapsulationLength()
Gets the required encapsulation length in bytes.
|
byte[] |
getPublicKey()
Gets the KEM public key.
|
void |
init()
Initializes the KEM and generates a new key pair.
|
void init()
byte[] getPublicKey()
byte[] extractSecret(byte[] encapsulated)
encapsulated - ciphertext to process.IllegalArgumentException - if encapsulated doesn't have the expected lengthNullPointerException - if encapsulated == nullint getEncapsulationLength()
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.