Skip to main content
. 2016 Nov 25;16(12):1993. doi: 10.3390/s16121993
Algorithm 2 Access Tree Description.
Input:
  TP: an access tree;
Output:
  {s,qlf(0)|lfisaleafnodeofTP}: sZp is a randomly-picked secret integer;
 1: for all u in TP do
 2:   define a polynomial qux=i=0ku1auixi, where the coefficients aui are undetermined;
 3: end for
 4: Pick a random integer s
 5: Set aR0=qR(0)=s, where R is the root node of TP;
 6: Set other coefficients of qR(x), i.e., aRi,i=1,2,,kR1, by randomly-picked secret integers;
 7: From top to bottom, set all of the coefficients of other nodes (except for the root node) that satisfy the following equation;
qu0=qparentuindexu.
  return {s,qlf(0)|lfisaleafnodeofTp}.