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(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(Object obj) |
byte[] |
getEncoded()
Converts the key to a byte array
|
int |
hashCode() |
void |
writeTo(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(InputStream is, NTRUSigningParameters params) throws IOException
h from an input stream and constructs a new public keyis - an input streamparams - the NtruSign parameters to useIOExceptionpublic byte[] getEncoded()
public void writeTo(OutputStream os) throws IOException
os - an output streamIOExceptionCopyright © 2015–2021 The veraPDF Consortium. All rights reserved.