de.flexiprovider.pqc.hbc.cmss
Interface NodeCalc

All Known Implementing Classes:
CRNodeCalc, SPRNodeCalc

public interface NodeCalc

This interface provides methods for calculating nodes in a tree.


Method Summary
 byte[] computeParent(byte[] leftNode, byte[] rightNode, int height)
          Calculates the parent node of two children.
 byte[] getLeaf(byte[] vkey)
          Calculates the leaf of a tree from the verification key.
 

Method Detail

computeParent

public byte[] computeParent(byte[] leftNode,
                            byte[] rightNode,
                            int height)
Calculates the parent node of two children.
Parameters:
leftNode - the left child
rightNode - the right child
height - the height of the children
Returns:
the parent node

getLeaf

public byte[] getLeaf(byte[] vkey)
Calculates the leaf of a tree from the verification key.
Parameters:
vkey - the verification key to calculate the leaf from.
Returns:
the leaf