| Modifier and Type | Field and Description |
|---|---|
| public static final NTRUEncryptionKeyGenerationParameters | APR2011_439
A parameter set that gives 128 bits of security and uses simple ternary polynomials. |
| public static final NTRUEncryptionKeyGenerationParameters | APR2011_439_FAST
Like |
| public static final NTRUEncryptionKeyGenerationParameters | APR2011_743
A parameter set that gives 256 bits of security and uses simple ternary polynomials. |
| public static final NTRUEncryptionKeyGenerationParameters | APR2011_743_FAST
Like |
| public int | |
| pack-priv int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public static final NTRUEncryptionKeyGenerationParameters | EES1087EP2
A conservative (in terms of security) parameter set that gives 256 bits of security and is optimized for key size. |
| public static final NTRUEncryptionKeyGenerationParameters | EES1171EP1
A conservative (in terms of security) parameter set that gives 256 bits of security and is a tradeoff between key size and encryption/decryption speed. |
| public static final NTRUEncryptionKeyGenerationParameters | EES1499EP1
A conservative (in terms of security) parameter set that gives 256 bits of security and is optimized for encryption/decryption speed. |
| public boolean | |
| public Digest | |
| public boolean | |
| pack-priv int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public byte[] | |
| public int | |
| public int | |
| public int | |
| public boolean |
| Access | Constructor and Description |
|---|---|
| public | NTRUEncryptionKeyGenerationParameters(int
number of polynomial coefficients N, int modulus q, int number of ones in the private polynomial df, int fminimum acceptable number of -1's, 0's, and 1's in the polynomial dm0, int m' in the last encryption stepnumber of random bits to prepend to the message db, int a parameter for the Index Generation Function ( c, int IndexGenerator)minimum number of hash calls for the IGF to make minCallsR, int minimum number of calls to generate the masking polynomial minCallsMask, boolean whether to hash the seed in the MGF first (true) or use the seed directly (false) hashSeed, byte[] three bytes that uniquely identify the parameter set oid, boolean whether to treat ternary polynomials as sparsely populated ( sparse, boolean org. vs org.)whether fastFp, Digest f=1+p*F for a ternary F (true) or f is ternary (false)a valid identifier for a hashAlg, SecureRandom java.security.MessageDigest instance such as SHA-256. The MessageDigest must support the getDigestLength() method.entropy source, if random)null uses CryptoServicesRegistrar#getSecureRandom()Constructs a parameter set that uses ternary private keys (i.e. |
| public | NTRUEncryptionKeyGenerationParameters(int
number of polynomial coefficients N, int modulus q, int number of ones in the private polynomial df, int fminimum acceptable number of -1's, 0's, and 1's in the polynomial dm0, int m' in the last encryption stepnumber of random bits to prepend to the message db, int a parameter for the Index Generation Function ( c, int org.)minimum number of hash calls for the IGF to make minCallsR, int minimum number of calls to generate the masking polynomial minCallsMask, boolean whether to hash the seed in the MGF first (true) or use the seed directly (false) hashSeed, byte[] three bytes that uniquely identify the parameter set oid, boolean whether to treat ternary polynomials as sparsely populated ( sparse, boolean org. vs org.)whether fastFp, Digest f=1+p*F for a ternary F (true) or f is ternary (false)a valid identifier for a hashAlg)java.security.MessageDigest instance such as SHA-256. The MessageDigest must support the getDigestLength() method.Constructs a parameter set that uses ternary private keys (i.e. |
| public | NTRUEncryptionKeyGenerationParameters(int
number of polynomial coefficients N, int modulus q, int number of ones in the private polynomial df1, int f1number of ones in the private polynomial df2, int f2number of ones in the private polynomial df3, int f3minimum acceptable number of -1's, 0's, and 1's in the polynomial dm0, int m' in the last encryption stepnumber of random bits to prepend to the message db, int a parameter for the Index Generation Function ( c, int IndexGenerator)minimum number of hash calls for the IGF to make minCallsR, int minimum number of calls to generate the masking polynomial minCallsMask, boolean whether to hash the seed in the MGF first (true) or use the seed directly (false) hashSeed, byte[] three bytes that uniquely identify the parameter set oid, boolean whether to treat ternary polynomials as sparsely populated ( sparse, boolean org. vs org.)whether fastFp, Digest f=1+p*F for a ternary F (true) or f is ternary (false)a valid identifier for a hashAlg, SecureRandom java.security.MessageDigest instance such as SHA-256entropy source, if random)null uses CryptoServicesRegistrar#getSecureRandom()Constructs a parameter set that uses product-form private keys (i.e. |
| public | NTRUEncryptionKeyGenerationParameters(int
number of polynomial coefficients N, int modulus q, int number of ones in the private polynomial df1, int f1number of ones in the private polynomial df2, int f2number of ones in the private polynomial df3, int f3minimum acceptable number of -1's, 0's, and 1's in the polynomial dm0, int m' in the last encryption stepnumber of random bits to prepend to the message db, int a parameter for the Index Generation Function ( c, int org.)minimum number of hash calls for the IGF to make minCallsR, int minimum number of calls to generate the masking polynomial minCallsMask, boolean whether to hash the seed in the MGF first (true) or use the seed directly (false) hashSeed, byte[] three bytes that uniquely identify the parameter set oid, boolean whether to treat ternary polynomials as sparsely populated ( sparse, boolean org. vs org.)whether fastFp, Digest f=1+p*F for a ternary F (true) or f is ternary (false)a valid identifier for a hashAlg)java.security.MessageDigest instance such as SHA-256Constructs a parameter set that uses product-form private keys (i.e. |
| public | NTRUEncryptionKeyGenerationParameters(InputStream
an input stream is)Reads a parameter set from an input stream. |
| Modifier and Type | Method and Description |
|---|---|
| public NTRUEncryptionKeyGenerationParameters | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public NTRUEncryptionParameters | |
| public int | Returns: the maximum length in bytesReturns the maximum length a plaintext message can be with this parameter set. |
| public int | |
| private void | |
| public String | |
| public void |
| APR2011_439 | back to summary |
|---|---|
| public static final NTRUEncryptionKeyGenerationParameters APR2011_439 A parameter set that gives 128 bits of security and uses simple ternary polynomials.
Uses | |
| APR2011_439_FAST | back to summary |
|---|---|
| public static final NTRUEncryptionKeyGenerationParameters APR2011_439_FAST Like | |
| APR2011_743 | back to summary |
|---|---|
| public static final NTRUEncryptionKeyGenerationParameters APR2011_743 A parameter set that gives 256 bits of security and uses simple ternary polynomials.
Uses | |
| APR2011_743_FAST | back to summary |
|---|---|
| public static final NTRUEncryptionKeyGenerationParameters APR2011_743_FAST Like | |
| bufferLenBits | back to summary |
|---|---|
| public int bufferLenBits | |
| bufferLenTrits | back to summary |
|---|---|
| pack-priv int bufferLenTrits | |
| c | back to summary |
|---|---|
| public int c | |
| db | back to summary |
|---|---|
| public int db | |
| df | back to summary |
|---|---|
| public int df | |
| df1 | back to summary |
|---|---|
| public int df1 | |
| df2 | back to summary |
|---|---|
| public int df2 | |
| df3 | back to summary |
|---|---|
| public int df3 | |
| dg | back to summary |
|---|---|
| public int dg | |
| dm0 | back to summary |
|---|---|
| public int dm0 | |
| dr | back to summary |
|---|---|
| public int dr | |
| dr1 | back to summary |
|---|---|
| public int dr1 | |
| dr2 | back to summary |
|---|---|
| public int dr2 | |
| dr3 | back to summary |
|---|---|
| public int dr3 | |
| EES1087EP2 | back to summary |
|---|---|
| public static final NTRUEncryptionKeyGenerationParameters EES1087EP2 A conservative (in terms of security) parameter set that gives 256 bits of security and is optimized for key size.
Uses | |
| EES1171EP1 | back to summary |
|---|---|
| public static final NTRUEncryptionKeyGenerationParameters EES1171EP1 A conservative (in terms of security) parameter set that gives 256 bits of security and is a tradeoff between key size and encryption/decryption speed.
Uses | |
| EES1499EP1 | back to summary |
|---|---|
| public static final NTRUEncryptionKeyGenerationParameters EES1499EP1 A conservative (in terms of security) parameter set that gives 256 bits of security and is optimized for encryption/decryption speed.
Uses | |
| fastFp | back to summary |
|---|---|
| public boolean fastFp | |
| hashAlg | back to summary |
|---|---|
| public Digest hashAlg | |
| hashSeed | back to summary |
|---|---|
| public boolean hashSeed | |
| llen | back to summary |
|---|---|
| pack-priv int llen | |
| maxMsgLenBytes | back to summary |
|---|---|
| public int maxMsgLenBytes | |
| minCallsMask | back to summary |
|---|---|
| public int minCallsMask | |
| minCallsR | back to summary |
|---|---|
| public int minCallsR | |
| N | back to summary |
|---|---|
| public int N | |
| oid | back to summary |
|---|---|
| public byte[] oid | |
| pkLen | back to summary |
|---|---|
| public int pkLen | |
| polyType | back to summary |
|---|---|
| public int polyType | |
| q | back to summary |
|---|---|
| public int q | |
| sparse | back to summary |
|---|---|
| public boolean sparse | |
| NTRUEncryptionKeyGenerationParameters | back to summary |
|---|---|
| public NTRUEncryptionKeyGenerationParameters(int N, int q, int df, int dm0, int db, int c, int minCallsR, int minCallsMask, boolean hashSeed, byte[] oid, boolean sparse, boolean fastFp, Digest hashAlg, SecureRandom random) Constructs a parameter set that uses ternary private keys (i.e.
| |
| NTRUEncryptionKeyGenerationParameters | back to summary |
|---|---|
| public NTRUEncryptionKeyGenerationParameters(int N, int q, int df, int dm0, int db, int c, int minCallsR, int minCallsMask, boolean hashSeed, byte[] oid, boolean sparse, boolean fastFp, Digest hashAlg) Constructs a parameter set that uses ternary private keys (i.e.
| |
| NTRUEncryptionKeyGenerationParameters | back to summary |
|---|---|
| public NTRUEncryptionKeyGenerationParameters(int N, int q, int df1, int df2, int df3, int dm0, int db, int c, int minCallsR, int minCallsMask, boolean hashSeed, byte[] oid, boolean sparse, boolean fastFp, Digest hashAlg, SecureRandom random) Constructs a parameter set that uses product-form private keys (i.e.
| |
| NTRUEncryptionKeyGenerationParameters | back to summary |
|---|---|
| public NTRUEncryptionKeyGenerationParameters(int N, int q, int df1, int df2, int df3, int dm0, int db, int c, int minCallsR, int minCallsMask, boolean hashSeed, byte[] oid, boolean sparse, boolean fastFp, Digest hashAlg) Constructs a parameter set that uses product-form private keys (i.e.
| |
| NTRUEncryptionKeyGenerationParameters | back to summary |
|---|---|
| public NTRUEncryptionKeyGenerationParameters(InputStream is) throws IOException Reads a parameter set from an input stream.
| |
| clone | back to summary |
|---|---|
| public NTRUEncryptionKeyGenerationParameters clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getEncryptionParameters | back to summary |
|---|---|
| public NTRUEncryptionParameters getEncryptionParameters() | |
| getMaxMessageLength | back to summary |
|---|---|
| public int getMaxMessageLength() Returns the maximum length a plaintext message can be with this parameter set.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| init | back to summary |
|---|---|
| private void init() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream os) throws IOException Writes the parameter set to an output stream
| |