public class NTRUSigningPublicKeyParameters extends AsymmetricKeyParameter
h.| Modifier and Type | Field and Description |
|---|---|
IntegerPolynomial |
h |
| Constructor and Description |
|---|
NTRUSigningPublicKeyParameters(byte[] b,
NTRUSigningParameters params)
Converts a byte array to a polynomial
h and constructs a new public key |
NTRUSigningPublicKeyParameters(java.io.InputStream is,
NTRUSigningParameters params)
Reads a polynomial
h from an input stream and constructs a new public key |
NTRUSigningPublicKeyParameters(IntegerPolynomial h,
NTRUSigningParameters params)
Constructs a new public key from a polynomial
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getEncoded()
Converts the key to a byte array
|
int |
hashCode() |
void |
writeTo(java.io.OutputStream os)
Writes the key to an output stream
|
isPrivatepublic IntegerPolynomial h
public NTRUSigningPublicKeyParameters(IntegerPolynomial h, NTRUSigningParameters params)
h - the polynomial h which determines the keyparams - the NtruSign parameters to usepublic NTRUSigningPublicKeyParameters(byte[] b,
NTRUSigningParameters params)
h and constructs a new public keyb - an encoded polynomialparams - the NtruSign parameters to usepublic NTRUSigningPublicKeyParameters(java.io.InputStream is,
NTRUSigningParameters params)
throws java.io.IOException
h from an input stream and constructs a new public keyis - an input streamparams - the NtruSign parameters to usejava.io.IOExceptionpublic byte[] getEncoded()
public void writeTo(java.io.OutputStream os)
throws java.io.IOException
os - an output streamjava.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object