Package org.bouncycastle.pqc.crypto.ntru
Class NTRUKEMGenerator
java.lang.Object
org.bouncycastle.pqc.crypto.ntru.NTRUKEMGenerator
- All Implemented Interfaces:
EncapsulatedSecretGenerator
Encapsulate a secret using NTRU. returns a
SecretWithEncapsulation
as encapsulation.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateEncapsulated
(AsymmetricKeyParameter recipientKey) Generate secret/encapsulation based on the recipient public key.
-
Constructor Details
-
NTRUKEMGenerator
Constructor- Parameters:
random
- a secure random number generator
-
-
Method Details
-
generateEncapsulated
Description copied from interface:EncapsulatedSecretGenerator
Generate secret/encapsulation based on the recipient public key.- Specified by:
generateEncapsulated
in interfaceEncapsulatedSecretGenerator
- Returns:
- An SecretWithEncapsulation derived from the recipient public key.
-