Guardtime KSI c SDK
Public Member Functions | Data Fields
KSI_TreeBuilder_st Struct Reference

#include <tree_builder.h>

Public Member Functions

 KSI_LIST (KSI_TreeBuilderLeafProcessor)*cbList
 

Data Fields

KSI_CTXctx
 
size_t ref
 
KSI_TreeNoderootNode
 
KSI_HashAlgorithm algo
 
KSI_TreeNodestack [KSI_TREE_BUILDER_STACK_LEN]
 
KSI_DataHasherhsr
 
short maxTreeLevel
 

Member Function Documentation

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

KSI_HashAlgorithm KSI_TreeBuilder_st::algo

Hashing algorithm for the internal nodes.

KSI_CTX* KSI_TreeBuilder_st::ctx

KSI context.

KSI_DataHasher* KSI_TreeBuilder_st::hsr

Common hashing object.

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.

size_t KSI_TreeBuilder_st::ref

Reference counter for the object.

KSI_TreeNode* KSI_TreeBuilder_st::rootNode

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

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: