Top Description Fields Constructors Methods
org.bouncycastle.pqc.crypto.ntru

public Class NTRUKEMGenerator

extends Object
implements EncapsulatedSecretGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.EncapsulatedSecretGenerator
Imports
java.security.SecureRandom, org.bouncycastle.crypto.EncapsulatedSecretGenerator, .SecretWithEncapsulation, org.bouncycastle.crypto.digests.SHA3Digest, org.bouncycastle.crypto.params.AsymmetricKeyParameter, org.bouncycastle.pqc.crypto.util.SecretWithEncapsulationImpl, org.bouncycastle.pqc.math.ntru.Polynomial, org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet, org.bouncycastle.util.Arrays

Encapsulate a secret using NTRU. returns a SecretWithEncapsulation as encapsulation.
See Also
NTRUKEMExtractor, NTRU website

Field Summary

Modifier and TypeField and Description
private final SecureRandom

Constructor Summary

AccessConstructor and Description
public
NTRUKEMGenerator(SecureRandom
a secure random number generator
random
)

Constructor

Method Summary

Modifier and TypeMethod and Description
public SecretWithEncapsulation
generateEncapsulated(AsymmetricKeyParameter recipientKey)

Implements org.bouncycastle.crypto.EncapsulatedSecretGenerator.generateEncapsulated.

Generate secret/encapsulation based on the recipient public key.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

randomback to summary
private final SecureRandom random

Constructor Detail

NTRUKEMGeneratorback to summary
public NTRUKEMGenerator(SecureRandom random)

Constructor

Parameters
random:SecureRandom

a secure random number generator

Method Detail

generateEncapsulatedback to summary
public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)

Implements org.bouncycastle.crypto.EncapsulatedSecretGenerator.generateEncapsulated.

Doc from org.bouncycastle.crypto.EncapsulatedSecretGenerator.generateEncapsulated.

Generate secret/encapsulation based on the recipient public key.

Returns:SecretWithEncapsulation

An SecretWithEncapsulation derived from the recipient public key.