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
 
Constructor Summary
LMOTSPublicKey(byte[] encoded)
           
LMOTSPublicKey(LMOTSHash hFunction, GFP32Polynomial hk, GFP32Polynomial hl)
          Construct a new public LMOTS key.
 
Method Summary
 java.lang.String getAlgorithm()
           
protected  codec.asn1.ASN1Type getAlgParams()
          this method is not used in this implementation
 GFP32Polynomial getHashedK()
           
 GFP32Polynomial getHashedL()
           
 LMOTSHash getHashFunction()
           
protected  byte[] getKeyData()
          this method is not used in this implementation
protected  codec.asn1.ASN1ObjectIdentifier getOID()
          this method is not used in this implementation
 
Methods inherited from class de.flexiprovider.api.keys.PublicKey
getEncoded, getFormat
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 use
hk - the hash value of the Vector K of the private Key
hl - the hash value of the Vector L of the private Key
Method Detail

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