| 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(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.
|
| Modifier and Type | Method and Description |
|---|---|
NTRUSigningParameters |
clone() |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
void |
writeTo(OutputStream os)
Writes the parameter set to an output stream
|
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 gB - 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 gd2 - number of -1's in the private polynomials f and gd3 - number of -1's in the private polynomials f and gB - number of perturbationsbeta - balancing factor for the transpose latticenormBound - maximum norm for valid signatureskeyNormBound - maximum norm for the ploynomials F and GhashAlg - a valid identifier for a java.security.MessageDigest instance such as SHA-256. The MessageDigest must support the getDigestLength() method.public NTRUSigningParameters(InputStream is) throws IOException
is - an input streamIOExceptionpublic void writeTo(OutputStream os) throws IOException
os - an output streamIOExceptionpublic NTRUSigningParameters clone()
Copyright © 2015–2021 The veraPDF Consortium. All rights reserved.