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
|
isPrivate
public 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 useIOException
public byte[] getEncoded()
public void writeTo(OutputStream os) throws IOException
os
- an output streamIOException
Copyright © 2020 BouncyCastle.org. All rights reserved.