NTRUSigningPrivateKeyParameters.Basis of three polynomials each,
except the zeroth basis for which h is undefined.
| Modifier and Type | Class and Description |
|---|---|
| public static class | NTRUSigningPrivateKeyParameters.
A NtruSign basis. |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private NTRUSigningPublicKeyParameters |
| Access | Constructor and Description |
|---|---|
| public | NTRUSigningPrivateKeyParameters(byte[]
an encoded private key b, NTRUSigningKeyGenerationParameters the NtruSign parameters to use params)Constructs a new private key from a byte array |
| public | NTRUSigningPrivateKeyParameters(InputStream
an input stream is, NTRUSigningKeyGenerationParameters the NtruSign parameters to use params)Constructs a new private key from an input stream |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| 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 NTRUSigningPrivateKeyParameters. | |
| public byte[] | |
| public NTRUSigningPublicKeyParameters | |
| public int | |
| public void |
| bases | back to summary |
|---|---|
| private List<NTRUSigningPrivateKeyParameters. | |
| publicKey | back to summary |
|---|---|
| private NTRUSigningPublicKeyParameters publicKey | |
| NTRUSigningPrivateKeyParameters | back to summary |
|---|---|
| public NTRUSigningPrivateKeyParameters(byte[] b, NTRUSigningKeyGenerationParameters params) throws IOException Constructs a new private key from a byte array
| |
| NTRUSigningPrivateKeyParameters | back to summary |
|---|---|
| public NTRUSigningPrivateKeyParameters(InputStream is, NTRUSigningKeyGenerationParameters params) throws IOException Constructs a new private key from an input stream
| |
| NTRUSigningPrivateKeyParameters | back to summary |
|---|---|
| public NTRUSigningPrivateKeyParameters(List<NTRUSigningPrivateKeyParameters. | |
| add | back to summary |
|---|---|
| private void add(NTRUSigningPrivateKeyParameters. Adds a basis to the key.
| |
| 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. | |
| getBasis | back to summary |
|---|---|
| public NTRUSigningPrivateKeyParameters. Returns the
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() throws IOException Converts the key to a byte array
| |
| getPublicKey | back to summary |
|---|---|
| public NTRUSigningPublicKeyParameters getPublicKey() | |
| 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
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream os) throws IOException Writes the key to an output stream
| |
f, f', h.
| Modifier and Type | Field and Description |
|---|---|
| public Polynomial | |
| public Polynomial | |
| public IntegerPolynomial | |
| pack-priv NTRUSigningKeyGenerationParameters |
| Access | Constructor and Description |
|---|---|
| protected | Basis(Polynomial f, Polynomial fPrime, IntegerPolynomial h, NTRUSigningKeyGenerationParameters
NtruSign parameters params)Constructs a new basis from polynomials |
| pack-priv | Basis(InputStream
an input stream is, NTRUSigningKeyGenerationParameters NtruSign parameters params, boolean whether to read the polynomial include_h)h (true) or only f and f' (false)Reads a basis from an input stream and constructs a new basis. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | encode(OutputStream
an output stream os, boolean whether to write the polynomial include_h)h (true) or only f and f' (false)Writes the basis to an output stream |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| private byte[] | |
| public int |
| f | back to summary |
|---|---|
| public Polynomial f | |
| fPrime | back to summary |
|---|---|
| public Polynomial fPrime | |
| h | back to summary |
|---|---|
| public IntegerPolynomial h | |
| params | back to summary |
|---|---|
| pack-priv NTRUSigningKeyGenerationParameters params | |
| Basis | back to summary |
|---|---|
| protected Basis(Polynomial f, Polynomial fPrime, IntegerPolynomial h, NTRUSigningKeyGenerationParameters params) Constructs a new basis from polynomials
| |
| Basis | back to summary |
|---|---|
| pack-priv Basis(InputStream is, NTRUSigningKeyGenerationParameters params, boolean include_h) throws IOException Reads a basis from an input stream and constructs a new basis.
| |
| encode | back to summary |
|---|---|
| pack-priv void encode(OutputStream os, boolean include_h) throws IOException Writes the basis to an output stream
| |
| 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 |
|---|---|
| private byte[] getEncoded(Polynomial p) | |
| 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
| |