de.flexiprovider.pqc.hbc.gmss
Class GMSSPublicKey
java.lang.Object
|
+--de.flexiprovider.api.keys.PublicKey
|
+--de.flexiprovider.pqc.hbc.gmss.GMSSPublicKey
- All Implemented Interfaces:
- java.security.Key, Key, java.security.PublicKey, java.io.Serializable
- public class GMSSPublicKey
- extends PublicKey
This class implements the GMSS public key and is usually initiated by the GMSSKeyPairGenerator.
- Author:
- Sebastian Blume
- See Also:
GMSSKeyPairGenerator,
GMSSPublicKeySpec, Serialized Form
| Fields inherited from interface java.security.Key |
serialVersionUID |
| Fields inherited from interface java.security.PublicKey |
serialVersionUID |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GMSSPublicKey
protected GMSSPublicKey(byte[] pub,
GMSSParameterset gmssParameterset)
- The constructor
- Parameters:
pub - a raw GMSS public keygmssParameterset - an instance of GMSS Parameterset- See Also:
GMSSKeyPairGenerator
GMSSPublicKey
protected GMSSPublicKey(GMSSPublicKeySpec keySpec)
- The constructor
- Parameters:
keySpec - a GMSS key specification
getAlgorithm
public java.lang.String getAlgorithm()
- Returns the name of the algorithm
- Returns:
- "GMSS"
getOID
protected codec.asn1.ASN1ObjectIdentifier getOID()
- Overrides:
getOID in class PublicKey
- Returns:
- the OID to encode in the SubjectPublicKeyInfo structure
getAlgParams
protected codec.asn1.ASN1Type getAlgParams()
- Overrides:
getAlgParams in class PublicKey
- Returns:
- the algorithm parameters to encode in the SubjectPublicKeyInfo
structure
getKeyData
protected byte[] getKeyData()
- Overrides:
getKeyData in class PublicKey
- Returns:
- the keyData to encode in the SubjectPublicKeyInfo structure
getPublicKeyBytes
protected byte[] getPublicKeyBytes()
- Returns:
- The GMSS public key byte array
getParameterset
protected GMSSParameterset getParameterset()
- Returns:
- The GMSS Parameterset
toString
public java.lang.String toString()
- Returns a human readable form of the GMSS public key
- Overrides:
toString in class java.lang.Object
- Returns:
- A human readable form of the GMSS public key