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)
|
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Stack
public Stack(int height,
codec.asn1.ASN1Sequence stackData)
Stack
public Stack(int height)
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