|
Bouncy Castle Cryptography Library 1.49 | ||||||||
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.NTRUSigningPrivateKeyParameters
public class NTRUSigningPrivateKeyParameters
A NtruSign private key comprises one or more NTRUSigningPrivateKeyParameters.Basis
of three polynomials each,
except the zeroth basis for which h
is undefined.
Nested Class Summary | |
---|---|
static class |
NTRUSigningPrivateKeyParameters.Basis
A NtruSign basis. |
Constructor Summary | |
---|---|
NTRUSigningPrivateKeyParameters(byte[] b,
NTRUSigningKeyGenerationParameters params)
Constructs a new private key from a byte array |
|
NTRUSigningPrivateKeyParameters(java.io.InputStream is,
NTRUSigningKeyGenerationParameters params)
Constructs a new private key from an input stream |
|
NTRUSigningPrivateKeyParameters(java.util.List<NTRUSigningPrivateKeyParameters.Basis> bases,
NTRUSigningPublicKeyParameters publicKey)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
NTRUSigningPrivateKeyParameters.Basis |
getBasis(int i)
Returns the i -th basis |
byte[] |
getEncoded()
Converts the key to a byte array |
NTRUSigningPublicKeyParameters |
getPublicKey()
|
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 |
Constructor Detail |
---|
public NTRUSigningPrivateKeyParameters(byte[] b, NTRUSigningKeyGenerationParameters params) throws java.io.IOException
b
- an encoded private keyparams
- the NtruSign parameters to use
java.io.IOException
public NTRUSigningPrivateKeyParameters(java.io.InputStream is, NTRUSigningKeyGenerationParameters params) throws java.io.IOException
is
- an input streamparams
- the NtruSign parameters to use
java.io.IOException
public NTRUSigningPrivateKeyParameters(java.util.List<NTRUSigningPrivateKeyParameters.Basis> bases, NTRUSigningPublicKeyParameters publicKey)
Method Detail |
---|
public NTRUSigningPrivateKeyParameters.Basis getBasis(int i)
i
-th basis
i
- the index
i
public NTRUSigningPublicKeyParameters getPublicKey()
public byte[] getEncoded() throws java.io.IOException
java.io.IOException
public void writeTo(java.io.OutputStream os) throws java.io.IOException
os
- an output stream
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |