de.flexiprovider.pqc.ots.lm
Class LMOTSPublicKey
java.lang.Object
|
+--de.flexiprovider.api.keys.PublicKey
|
+--de.flexiprovider.pqc.ots.lm.LMOTSPublicKey
- All Implemented Interfaces:
- java.security.Key, Key, java.security.PublicKey, java.io.Serializable
- public class LMOTSPublicKey
- extends PublicKey
This class implements a LMOTS public key.
- See Also:
LMOTSKeyPairGenerator, 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, toString, wait, wait, wait |
LMOTSPublicKey
public LMOTSPublicKey(byte[] encoded)
throws java.lang.Exception
LMOTSPublicKey
public LMOTSPublicKey(LMOTSHash hFunction,
GFP32Polynomial hk,
GFP32Polynomial hl)
- Construct a new public LMOTS key.
- Parameters:
hFunction - the Hash function for further usehk - the hash value of the Vector K of the private Keyhl - the hash value of the Vector L of the private Key
getAlgorithm
public java.lang.String getAlgorithm()
- Returns:
- the OID of the used Algorithm (NOT USED)
getAlgParams
protected codec.asn1.ASN1Type getAlgParams()
- this method is not used in this implementation
- Overrides:
getAlgParams in class PublicKey
- Returns:
- null
getHashedK
public GFP32Polynomial getHashedK()
- Returns:
- the hashed value of K
getHashedL
public GFP32Polynomial getHashedL()
- Returns:
- the hashed value of L
getHashFunction
public LMOTSHash getHashFunction()
- Returns:
- the currently used Hash Function
getKeyData
protected byte[] getKeyData()
- this method is not used in this implementation
- Overrides:
getKeyData in class PublicKey
- Returns:
- null
getOID
protected codec.asn1.ASN1ObjectIdentifier getOID()
- this method is not used in this implementation
- Overrides:
getOID in class PublicKey
- Returns:
- null