de.flexiprovider.pqc.ots.merkle
Class MerkleOTSPrivateKey
java.lang.Object
|
+--de.flexiprovider.api.keys.PrivateKey
|
+--de.flexiprovider.pqc.ots.merkle.MerkleOTSPrivateKey
- All Implemented Interfaces:
- java.security.Key, Key, java.security.PrivateKey, java.io.Serializable
- public class MerkleOTSPrivateKey
- extends PrivateKey
This class implements the MerkleOTS private key.
- Author:
- Elena Klintsevich
- See Also:
MerkleOTSKeyPairGenerator, Serialized Form
| Fields inherited from interface java.security.Key |
serialVersionUID |
| Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
| Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MerkleOTSPrivateKey
protected MerkleOTSPrivateKey(java.lang.String oid,
byte[][] keyBytes)
- Construct a new MerkleOTS private key.
- Parameters:
oid - the OID of the algorithmkeyBytes - the key bytes
MerkleOTSPrivateKey
protected MerkleOTSPrivateKey(MerkleOTSPrivateKeySpec keySpec)
- Construct a new MerkleOTS private key from the given key specification.
- Parameters:
keySpec - a MerkleOTSPrivateKeySpec
getAlgorithm
public java.lang.String getAlgorithm()
- Returns:
- the OID of the algorithm
getOIDString
protected java.lang.String getOIDString()
- Returns:
- the OID of the algorithm
getKeyBytes
protected byte[][] getKeyBytes()
- Returns:
- the key bytes
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getOID
protected codec.asn1.ASN1ObjectIdentifier getOID()
- Overrides:
getOID in class PrivateKey
- Returns:
- the OID to encode in the SubjectPublicKeyInfo structure
getAlgParams
protected codec.asn1.ASN1Type getAlgParams()
- Overrides:
getAlgParams in class PrivateKey
- Returns:
- the algorithm parameters to encode in the SubjectPublicKeyInfo
structure
getKeyData
protected byte[] getKeyData()
- Overrides:
getKeyData in class PrivateKey
- Returns:
- the keyData to encode in the SubjectPublicKeyInfo structure