Class BCNHPublicKey
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.provider.newhope.BCNHPublicKey
-
- All Implemented Interfaces:
Serializable
,Key
,PublicKey
,NHKey
,NHPublicKey
public class BCNHPublicKey extends Object implements NHPublicKey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCNHPublicKey(SubjectPublicKeyInfo keyInfo)
BCNHPublicKey(NHPublicKeyParameters params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compare this SPHINCS-256 public key with another object.String
getAlgorithm()
byte[]
getEncoded()
String
getFormat()
byte[]
getPublicData()
int
hashCode()
-
-
-
Constructor Detail
-
BCNHPublicKey
public BCNHPublicKey(NHPublicKeyParameters params)
-
BCNHPublicKey
public BCNHPublicKey(SubjectPublicKeyInfo keyInfo) throws IOException
- Throws:
IOException
-
-
Method Detail
-
equals
public boolean equals(Object o)
Compare this SPHINCS-256 public 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
-
getPublicData
public byte[] getPublicData()
- Specified by:
getPublicData
in interfaceNHPublicKey
-
-