de.flexiprovider.pqc.hbc.cmss
Class Stack

java.lang.Object
  |
  +--de.flexiprovider.pqc.hbc.cmss.Stack

class Stack
extends java.lang.Object


Constructor Summary
Stack(int height)
           
Stack(int height, codec.asn1.ASN1Sequence stackData)
           
 
Method Summary
 void copy(Stack otherStack)
           
 codec.asn1.ASN1Sequence getASN1()
          Return the data to encode the stack in SubjectPublicKeyInfo structure.
 Node pop()
           
 void push(Node newNode)
           
 void pushAtBack(Node newNode)
           
 int topNodeHeight()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stack

public Stack(int height,
             codec.asn1.ASN1Sequence stackData)

Stack

public Stack(int height)
Method Detail

pop

public Node pop()

push

public void push(Node newNode)

pushAtBack

public void pushAtBack(Node newNode)

topNodeHeight

public int topNodeHeight()

copy

public void copy(Stack otherStack)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a human readable form of the stack

getASN1

public codec.asn1.ASN1Sequence getASN1()
Return the data to encode the stack in SubjectPublicKeyInfo structure.

The ASN.1 definition of STACK

    STACK ::= SEQUENCE {
      tailnodes                     SEQUENCE OF NODE            -- tailnodes
      index                         INTEGER                     -- index of top node on stack
    }
    
    NODE ::= SEQUENCE {
      value                         OCTET STRING                -- node value
      height                        INTEGER                     -- height of node in tree
    }
    
 
Returns:
the keyData to encode in the SubjectPublicKeyInfo structure