|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.pqc.crypto.ntru.NTRUSigningParameters
public class NTRUSigningParameters
A set of parameters for NtruSign. Several predefined parameter sets are available and new ones can be created as well.
| Field Summary | |
|---|---|
int |
B
|
double |
betaSq
|
int |
d
|
int |
d1
|
int |
d2
|
int |
d3
|
Digest |
hashAlg
|
int |
N
|
double |
normBoundSq
|
int |
q
|
int |
signFailTolerance
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
NTRUSigningParameters |
clone()
|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
java.lang.String |
toString()
|
void |
writeTo(java.io.OutputStream os)
Writes the parameter set to an output stream |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public NTRUSigningParameters(int N,
int q,
int d,
int B,
double beta,
double normBound,
Digest hashAlg)
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)
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(java.io.InputStream is)
throws java.io.IOException
is - an input stream
java.io.IOException| Method Detail |
|---|
public void writeTo(java.io.OutputStream os)
throws java.io.IOException
os - an output stream
java.io.IOExceptionpublic NTRUSigningParameters clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||