public class NTRUSigningParameters
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
int |
B |
double |
betaSq |
int |
d |
int |
d1 |
int |
d2 |
int |
d3 |
Digest |
hashAlg |
int |
N |
double |
normBoundSq |
int |
q |
int |
signFailTolerance |
Constructor and Description |
---|
NTRUSigningParameters(java.io.InputStream is)
Reads a parameter set from an input stream.
|
NTRUSigningParameters(int N,
int q,
int d,
int B,
double beta,
double normBound,
Digest hashAlg)
Constructs a parameter set that uses ternary private keys (i.e.
|
NTRUSigningParameters(int N,
int q,
int d1,
int d2,
int d3,
int B,
double beta,
double normBound,
double keyNormBound,
Digest hashAlg)
Constructs a parameter set that uses product-form private keys (i.e.
|
public int N
public int q
public int d
public int d1
public int d2
public int d3
public int B
public double betaSq
public double normBoundSq
public int signFailTolerance
public Digest hashAlg
public NTRUSigningParameters(int N, int q, int d, int B, double beta, double normBound, Digest hashAlg)
polyType=SIMPLE
).N
- number of polynomial coefficientsq
- modulusd
- number of -1's in the private polynomials f
and g
B
- number of perturbationsbeta
- balancing factor for the transpose latticenormBound
- maximum norm for valid signatureshashAlg
- a valid identifier for a java.security.MessageDigest
instance such as SHA-256
. The MessageDigest
must support the getDigestLength()
method.public NTRUSigningParameters(int N, int q, int d1, int d2, int d3, int B, double beta, double normBound, double keyNormBound, Digest hashAlg)
polyType=PRODUCT
).N
- number of polynomial coefficientsq
- modulusd1
- number of -1's in the private polynomials f
and g
d2
- number of -1's in the private polynomials f
and g
d3
- number of -1's in the private polynomials f
and g
B
- number of perturbationsbeta
- balancing factor for the transpose latticenormBound
- maximum norm for valid signatureskeyNormBound
- maximum norm for the ploynomials F
and G
hashAlg
- a valid identifier for a java.security.MessageDigest
instance such as SHA-256
. The MessageDigest
must support the getDigestLength()
method.public NTRUSigningParameters(java.io.InputStream is) throws java.io.IOException
is
- an input streamjava.io.IOException
public void writeTo(java.io.OutputStream os) throws java.io.IOException
os
- an output streamjava.io.IOException
public NTRUSigningParameters clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object