de.flexiprovider.pqc.ots.lm
Class LMOTSHash
java.lang.Object
|
+--de.flexiprovider.pqc.ots.lm.LMOTSHash
- public class LMOTSHash
- extends java.lang.Object
This class implements the hash function used for the signature. It is
described in the paper on page 7 (2.3 A hash function family)
|
Constructor Summary |
LMOTSHash(byte[] encoded)
Constructor using an encoded byte Array to construct an LMOTS Hash. |
LMOTSHash(java.util.Vector a)
Constructor |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LMOTSHash
public LMOTSHash(byte[] encoded)
- Constructor using an encoded byte Array to construct an LMOTS Hash. The
byte array must comply to the encoding format of LMOTS Hash. Using
.getEncoded() yields a suitable byte array.
- Parameters:
encoded - the byte array to be decoded.
LMOTSHash
public LMOTSHash(java.util.Vector a)
- Constructor
- Parameters:
a - a vector of GFP32Polynomial
calculatHash
public GFP32Polynomial calculatHash(java.util.Vector vec)
- this method calculates the hash of a given vector of
GFP32Polynomial
- Parameters:
vec - a vector of GFP32Polynomial- Returns:
- a
GFP32Polynomial
getA
public java.util.Vector getA()
getEncoded
public byte[] getEncoded()
throws codec.asn1.ASN1Exception,
java.io.IOException