public class MLKEMGenerator extends java.lang.Object implements EncapsulatedSecretGenerator
| Constructor and Description |
|---|
MLKEMGenerator(java.security.SecureRandom random) |
| Modifier and Type | Method and Description |
|---|---|
SecretWithEncapsulation |
generateEncapsulated(AsymmetricKeyParameter recipientKey)
Generate secret/encapsulation based on the recipient public key.
|
SecretWithEncapsulation |
internalGenerateEncapsulated(AsymmetricKeyParameter recipientKey,
byte[] randBytes)
Deprecated.
|
static SecretWithEncapsulation |
internalGenerateEncapsulated(MLKEMPublicKeyParameters recipientKey,
byte[] randBytes) |
public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)
EncapsulatedSecretGeneratorgenerateEncapsulated in interface EncapsulatedSecretGeneratorpublic SecretWithEncapsulation internalGenerateEncapsulated(AsymmetricKeyParameter recipientKey, byte[] randBytes)
internalGenerateEncapsulated(MLKEMPublicKeyParameters, byte[]) instead.public static SecretWithEncapsulation internalGenerateEncapsulated(MLKEMPublicKeyParameters recipientKey, byte[] randBytes)