public class SAKKEKEMSGenerator extends java.lang.Object implements EncapsulatedSecretGenerator
The algorithm follows these steps (as per RFC 6508, Section 6.2.1):
| Constructor and Description |
|---|
SAKKEKEMSGenerator(java.security.SecureRandom random)
Constructs a SAKKEKEMSGenerator with the specified source of randomness.
|
| Modifier and Type | Method and Description |
|---|---|
SecretWithEncapsulation |
generateEncapsulated(AsymmetricKeyParameter recipientKey)
Generates an encapsulated shared secret value (SSV) using the recipient's public key parameters
as specified in RFC 6508, Section 6.2.1.
|
public SAKKEKEMSGenerator(java.security.SecureRandom random)
random - a SecureRandom instance for generating cryptographically secure random values.
Must not be null.public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)
This method performs the following operations:
generateEncapsulated in interface EncapsulatedSecretGeneratorrecipientKey - the recipient's public key parameters. Must be an instance of
SAKKEPublicKeyParameters. Must not be null.SecretWithEncapsulation containing the SSV and the encapsulated data.