Class BCNHPrivateKey
java.lang.Object
org.bouncycastle.pqc.jcajce.provider.newhope.BCNHPrivateKey
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,Destroyable
,NHKey
,NHPrivateKey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBCNHPrivateKey
(PrivateKeyInfo keyInfo) BCNHPrivateKey
(NHPrivateKeyParameters params) -
Method Summary
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 Details
-
BCNHPrivateKey
-
BCNHPrivateKey
- Throws:
IOException
-
-
Method Details
-
equals
Compare this NH private key with another object. -
hashCode
public int hashCode() -
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
- Returns:
- name of the algorithm - "NH"
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
getFormat
-
getSecretData
public short[] getSecretData()- Specified by:
getSecretData
in interfaceNHPrivateKey
-