de.flexiprovider.pqc.hbc.cmss
Class CMSSPrivateKeySpec
java.lang.Object
|
+--de.flexiprovider.pqc.hbc.cmss.CMSSPrivateKeySpec
- All Implemented Interfaces:
- KeySpec, java.security.spec.KeySpec
- public class CMSSPrivateKeySpec
- extends java.lang.Object
- implements KeySpec
This class provides a specification for a CMSS private key.
- Author:
- Elena Klintsevich;
- See Also:
CMSSPrivateKey,
KeySpec
|
Constructor Summary |
CMSSPrivateKeySpec(java.lang.String oid,
int indexMain,
int indexSub,
int heightOfTrees,
byte[][] seeds,
BDSAuthPath[] authPath,
int activeSubtree,
byte[] subtreeRootSig,
byte[] maintreeOTSVerificationKey,
byte[][][] masks)
|
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMSSPrivateKeySpec
public CMSSPrivateKeySpec(java.lang.String oid,
int indexMain,
int indexSub,
int heightOfTrees,
byte[][] seeds,
BDSAuthPath[] authPath,
int activeSubtree,
byte[] subtreeRootSig,
byte[] maintreeOTSVerificationKey,
byte[][][] masks)
- Parameters:
oid - the OID of the algorithmindexMain - main tree indexindexSub - subtree indexheightOfTrees - height of treesseeds - seed for generate next OTSKey of Merkle tree and next
Merkle treeauth - authentication pathssubtreeRootSig - the one-time signature of the root of the current subtree
getOIDString
public java.lang.String getOIDString()
- Returns:
- the OID string identifying the algorithm this kwy was created
with
getIndexMain
public int getIndexMain()
- Returns:
- the main tree index
getIndexSub
public int getIndexSub()
- Returns:
- the subtree index
getHeightOfTrees
public int getHeightOfTrees()
- Returns:
- the height of trees
getSeeds
public byte[][] getSeeds()
- Returns:
- the seeds
getAuthPaths
public BDSAuthPath[] getAuthPaths()
- Returns:
- the authentication paths
getActiveSubtree
public int getActiveSubtree()
- Returns:
- the active subtree
getSubtreeRootSig
public byte[] getSubtreeRootSig()
- Returns:
- the main tree part of signature
getMaintreeOTSVerificationKey
public byte[] getMaintreeOTSVerificationKey()
- Returns:
- the one-time public key used to verify the rootSignature of the
subtree
getMasks
public byte[][][] getMasks()