f
which takes different forms depending on whether product-form polynomials are used,
and on fastPf modulo p is precomputed on initialization.
| Modifier and Type | Field and Description |
|---|---|
| public IntegerPolynomial | |
| public IntegerPolynomial | |
| public Polynomial |
| Access | Constructor and Description |
|---|---|
| public | NTRUEncryptionPrivateKeyParameters(IntegerPolynomial
the public polynomial for the key. h, Polynomial the polynomial which determines the key: if t, IntegerPolynomial fastFp=true, f=1+3t; otherwise, f=tthe inverse of fp, NTRUEncryptionParameters fthe NtruEncrypt parameters to use params)Constructs a new private key from a polynomial |
| public | NTRUEncryptionPrivateKeyParameters(byte[]
an encoded polynomial b, NTRUEncryptionParameters the NtruEncrypt parameters to use params)Converts a byte array to a polynomial |
| public | NTRUEncryptionPrivateKeyParameters(InputStream
an input stream is, NTRUEncryptionParameters the NtruEncrypt parameters to use params)Reads a polynomial |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public byte[] | |
| public int | |
| private void | |
| public void |
| fp | back to summary |
|---|---|
| public IntegerPolynomial fp | |
| h | back to summary |
|---|---|
| public IntegerPolynomial h | |
| t | back to summary |
|---|---|
| public Polynomial t | |
| NTRUEncryptionPrivateKeyParameters | back to summary |
|---|---|
| public NTRUEncryptionPrivateKeyParameters(IntegerPolynomial h, Polynomial t, IntegerPolynomial fp, NTRUEncryptionParameters params) Constructs a new private key from a polynomial
| |
| NTRUEncryptionPrivateKeyParameters | back to summary |
|---|---|
| public NTRUEncryptionPrivateKeyParameters(byte[] b, NTRUEncryptionParameters params) throws IOException Converts a byte array to a polynomial
| |
| NTRUEncryptionPrivateKeyParameters | back to summary |
|---|---|
| public NTRUEncryptionPrivateKeyParameters(InputStream is, NTRUEncryptionParameters params) throws IOException Reads a polynomial
| |
| 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.
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Converts the key to a byte array
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the 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() Initializes | |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream os) throws IOException Writes the key to an output stream
| |