|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.pqc.crypto.ntru.NTRUSigningPublicKeyParameters
public class NTRUSigningPublicKeyParameters
A NtruSign public key is essentially a polynomial named h.
| Field Summary | |
|---|---|
IntegerPolynomial |
h
|
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter |
|---|
isPrivate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public IntegerPolynomial h
| Constructor Detail |
|---|
public NTRUSigningPublicKeyParameters(IntegerPolynomial h,
NTRUSigningParameters params)
h - the polynomial h which determines the keyparams - the NtruSign parameters to use
public NTRUSigningPublicKeyParameters(byte[] b,
NTRUSigningParameters params)
h and constructs a new public key
b - an encoded polynomialparams - the NtruSign parameters to use
public NTRUSigningPublicKeyParameters(java.io.InputStream is,
NTRUSigningParameters params)
throws java.io.IOException
h from an input stream and constructs a new public key
is - an input streamparams - the NtruSign parameters to use
java.io.IOException| Method Detail |
|---|
public byte[] getEncoded()
public void writeTo(java.io.OutputStream os)
throws java.io.IOException
os - an output stream
java.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||