Class BCNHPrivateKey
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.provider.newhope.BCNHPrivateKey
-
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,Destroyable
,NHKey
,NHPrivateKey
public class BCNHPrivateKey extends Object implements NHPrivateKey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCNHPrivateKey(PrivateKeyInfo keyInfo)
BCNHPrivateKey(NHPrivateKeyParameters params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compare this NH private key with another object.String
getAlgorithm()
byte[]
getEncoded()
String
getFormat()
short[]
getSecretData()
int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
-
-
-
Constructor Detail
-
BCNHPrivateKey
public BCNHPrivateKey(NHPrivateKeyParameters params)
-
BCNHPrivateKey
public BCNHPrivateKey(PrivateKeyInfo keyInfo) throws IOException
- Throws:
IOException
-
-
Method Detail
-
equals
public boolean equals(Object o)
Compare this NH private key with another object.
-
getAlgorithm
public final String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceKey
- Returns:
- name of the algorithm - "NH"
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
-
getSecretData
public short[] getSecretData()
- Specified by:
getSecretData
in interfaceNHPrivateKey
-
-