Bouncy Castle Cryptography Library 1.79

org.bouncycastle.pqc.math.ntru.parameters
Class NTRUHRSSParameterSet

java.lang.Object
  |
  +--org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet
        |
        +--org.bouncycastle.pqc.math.ntru.parameters.NTRUHRSSParameterSet
Direct Known Subclasses:
NTRUHRSS1373, NTRUHRSS701

public abstract class NTRUHRSSParameterSet
extends NTRUParameterSet

Abstract class for NTRU-HRSS parameter classes.

The naming convention for the classes is {@code NTRUHRSS[n]}. e.g. {@link NTRUHRSS701} has n = 701.

See Also:
NTRUHRSS701, NTRU specification document section 1.3.3

Method Summary
 Polynomial createPolynomial()
          Creates a polynomial based on this parameter set.
 int sampleFgBytes()
           
 int sampleRmBytes()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createPolynomial

public Polynomial createPolynomial()
Description copied from class: NTRUParameterSet
Creates a polynomial based on this parameter set.
Overrides:
createPolynomial in class NTRUParameterSet
Following copied from class: org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet
Returns:
an instance of Polynomial

sampleFgBytes

public int sampleFgBytes()
Overrides:
sampleFgBytes in class NTRUParameterSet
Following copied from class: org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet
Returns:
{@code sample_key_bits/8}

sampleRmBytes

public int sampleRmBytes()
Overrides:
sampleRmBytes in class NTRUParameterSet
Following copied from class: org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet
Returns:
{@code sample_plaintext_bits/8}

Bouncy Castle Cryptography Library 1.79