Class NTRUHPSParameterSet
java.lang.Object
org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet
org.bouncycastle.pqc.math.ntru.parameters.NTRUHPSParameterSet
- Direct Known Subclasses:
NTRUHPS2048509,NTRUHPS2048677,NTRUHPS40961229,NTRUHPS4096821
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:
-
Method Summary
Modifier and TypeMethodDescriptionCreates a polynomial based on this parameter set.intintintweight()Methods inherited from class org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet
logQ, n, ntruCiphertextBytes, ntruPublicKeyBytes, ntruSecretKeyBytes, owcpaBytes, owcpaMsgBytes, owcpaPublicKeyBytes, owcpaSecretKeyBytes, packDegree, packTrinaryBytes, prfKeyBytes, q, sampleFixedTypeBytes, sampleIidBytes, seedBytes, sharedKeyBytes
-
Method Details
-
createPolynomial
Description copied from class:NTRUParameterSetCreates a polynomial based on this parameter set.- Specified by:
createPolynomialin classNTRUParameterSet- Returns:
- an instance of
Polynomial
-
sampleFgBytes
public int sampleFgBytes()- Specified by:
sampleFgBytesin classNTRUParameterSet- Returns:
sample_key_bits/8
-
sampleRmBytes
public int sampleRmBytes()- Specified by:
sampleRmBytesin classNTRUParameterSet- Returns:
sample_plaintext_bits/8
-
weight
public int weight()
-