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)
           
 
Method Summary
 int getActiveSubtree()
           
 BDSAuthPath[] getAuthPaths()
           
 int getHeightOfTrees()
           
 int getIndexMain()
           
 int getIndexSub()
           
 byte[] getMaintreeOTSVerificationKey()
           
 byte[][][] getMasks()
           
 java.lang.String getOIDString()
           
 byte[][] getSeeds()
           
 byte[] getSubtreeRootSig()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 algorithm
indexMain - main tree index
indexSub - subtree index
heightOfTrees - height of trees
seeds - seed for generate next OTSKey of Merkle tree and next Merkle tree
auth - authentication paths
subtreeRootSig - the one-time signature of the root of the current subtree
Method Detail

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()