Class BCSphincs256PublicKey
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.provider.sphincs.BCSphincs256PublicKey
-
- All Implemented Interfaces:
Serializable
,Key
,PublicKey
,SPHINCSKey
public class BCSphincs256PublicKey extends Object implements PublicKey, SPHINCSKey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCSphincs256PublicKey(ASN1ObjectIdentifier treeDigest, SPHINCSPublicKeyParameters params)
BCSphincs256PublicKey(SubjectPublicKeyInfo keyInfo)
-
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[]
getKeyData()
int
hashCode()
-
-
-
Constructor Detail
-
BCSphincs256PublicKey
public BCSphincs256PublicKey(ASN1ObjectIdentifier treeDigest, SPHINCSPublicKeyParameters params)
-
BCSphincs256PublicKey
public BCSphincs256PublicKey(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 - "SPHINCS-256"
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
-
getKeyData
public byte[] getKeyData()
- Specified by:
getKeyData
in interfaceSPHINCSKey
-
-