Guardtime KSI c SDK
Loading...
Searching...
No Matches
KSI_TreeBuilder_st Struct Reference

#include <tree_builder.h>

Public Member Functions

 KSI_LIST (KSI_TreeBuilderLeafProcessor) *cbList

Data Fields

KSI_CTX * ctx
size_t ref
KSI_TreeNode * rootNode
KSI_HashAlgorithm algo
KSI_TreeNode * stack [KSI_TREE_BUILDER_STACK_LEN]
KSI_DataHasher * hsr
short maxTreeLevel

Member Function Documentation

◆ KSI_LIST()

KSI_TreeBuilder_st::KSI_LIST ( KSI_TreeBuilderLeafProcessor )

Callback functions for the leaf node. They are executed as a sequence where the last output tree node is the input node for the next call. The final output node is added to the tree.

Field Documentation

◆ algo

KSI_HashAlgorithm KSI_TreeBuilder_st::algo

Hashing algorithm for the internal nodes.

◆ ctx

KSI_CTX* KSI_TreeBuilder_st::ctx

KSI context.

◆ hsr

KSI_DataHasher* KSI_TreeBuilder_st::hsr

Common hashing object.

◆ maxTreeLevel

short KSI_TreeBuilder_st::maxTreeLevel

Maximum level of the root hash. If adding a leaf would make the level of the root hash greater than this parameter, an error is returned. If the value is less or equal to 0 it is ignored.

◆ ref

size_t KSI_TreeBuilder_st::ref

Reference counter for the object.

◆ rootNode

KSI_TreeNode* KSI_TreeBuilder_st::rootNode

The root node of the computed tree. If set, the computation is finished.

◆ stack

KSI_TreeNode* KSI_TreeBuilder_st::stack[KSI_TREE_BUILDER_STACK_LEN]

Stack of the root nodes of complete binary trees.


The documentation for this struct was generated from the following file: