Top Description Constructors Methods
org.bouncycastle.pqc.math.ntru.parameters

public abstract Class NTRUHPSParameterSet

extends NTRUParameterSet
Class Inheritance
Known Direct Subclasses
org.bouncycastle.pqc.math.ntru.parameters.NTRUHPS2048509, org.bouncycastle.pqc.math.ntru.parameters.NTRUHPS2048677, org.bouncycastle.pqc.math.ntru.parameters.NTRUHPS4096821
Imports
org.bouncycastle.pqc.math.ntru.HPSPolynomial, .Polynomial

Abstract class for NTRU-HPS parameter classes.

The naming convention for the classes is NTRUHPS[q][n]. e.g. NTRUHPS2048509 has n = 509 and q = 2048.

See Also
NTRUHPS2048509, NTRUHPS2048677, NTRUHPS4096821, NTRU specification document section 1.3.2

Constructor Summary

AccessConstructor and Description
pack-priv
NTRUHPSParameterSet(int n, int logQ, int seedBytes, int prfKeyBytes, int sharedKeyBytes)

Method Summary

Modifier and TypeMethod and Description
public Polynomial
createPolynomial()

Implements abstract org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet.createPolynomial.

Creates a polynomial based on this parameter set.
public int
public int
public int
Inherited from org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet:
logQnntruCiphertextBytesntruPublicKeyBytesntruSecretKeyBytesowcpaBytesowcpaMsgBytesowcpaPublicKeyBytesowcpaSecretKeyBytespackDegreepackTrinaryBytesprfKeyBytesqsampleFixedTypeBytessampleIidBytesseedBytessharedKeyBytes

Constructor Detail

NTRUHPSParameterSetback to summary
pack-priv NTRUHPSParameterSet(int n, int logQ, int seedBytes, int prfKeyBytes, int sharedKeyBytes)

Method Detail

createPolynomialback to summary
public Polynomial createPolynomial()

Implements abstract org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet.createPolynomial.

Doc from org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet.createPolynomial.

Creates a polynomial based on this parameter set.

Returns:Polynomial

an instance of Polynomial

Annotations
@Override
sampleFgBytesback to summary
public int sampleFgBytes()

Implements abstract org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet.sampleFgBytes.

Returns:int

Doc from org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet.sampleFgBytes.

sample_key_bits/8

Annotations
@Override
sampleRmBytesback to summary
public int sampleRmBytes()

Implements abstract org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet.sampleRmBytes.

Returns:int

Doc from org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet.sampleRmBytes.

sample_plaintext_bits/8

Annotations
@Override
weightback to summary
public int weight()