|
Algorithm 2 Access Tree Description. |
| Input: |
| : an access tree; |
| Output: |
| : is a randomly-picked secret integer; |
| 1: for all
u in
do
|
| 2: define a polynomial , where the coefficients are undetermined; |
| 3: end for
|
| 4: Pick a random integer s
|
| 5: Set , where R is the root node of ; |
| 6: Set other coefficients of , i.e., , 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;
|
| return
. |