Class NTRUHRSSParameterSet
java.lang.Object
org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet
org.bouncycastle.pqc.math.ntru.parameters.NTRUHRSSParameterSet
- Direct Known Subclasses:
NTRUHRSS1373
,NTRUHRSS701
Abstract class for NTRU-HRSS parameter classes.
The naming convention for the classes is NTRUHRSS[n]
. e.g. NTRUHRSS701
has n = 701.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates a polynomial based on this parameter set.int
int
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:NTRUParameterSet
Creates a polynomial based on this parameter set.- Specified by:
createPolynomial
in classNTRUParameterSet
- Returns:
- an instance of
Polynomial
-
sampleFgBytes
public int sampleFgBytes()- Specified by:
sampleFgBytes
in classNTRUParameterSet
- Returns:
sample_key_bits/8
-
sampleRmBytes
public int sampleRmBytes()- Specified by:
sampleRmBytes
in classNTRUParameterSet
- Returns:
sample_plaintext_bits/8
-