CloudCrypto icon indicating copy to clipboard operation
CloudCrypto copied to clipboard

Whether the return of ParserUtils.GenerateAccessPolicy is the share-generating matrix of LSSS?

Open NorwegianForest opened this issue 4 years ago • 2 comments

According to the code in README. String accessPolicyString = "((0 and 1 and 2) and (3 or 4 or 5) and (6 and 7 and (8 or 9 or 10 or 11)))"; int[][] accessPolicy = ParserUtils.GenerateAccessPolicy(accessPolicyString);

There are 12 attributes in the accessPolicyString. But the accessPolicy is 11 rows and 4 columns. According to the description of the share-generating matrix in ABE papers:

LSSS access structure (M, ρ). The function ρ associates rows of M to attributes.

It means that one row in the share-generating matrix M corresponds to one attribute. So, whether the return of ParserUtils.GenerateAccessPolicy is the share-generating matrix of LSSS?

NorwegianForest avatar Dec 15 '20 07:12 NorwegianForest

Can you show the resulting accessPolicy?

liuweiran900217 avatar Dec 15 '20 10:12 liuweiran900217

accessPolicy =

2 2 1 2 
2 2 3 4 
2 2 5 6 
2 2 7 -1 
2 1 8 -2 
2 2 -3 -4 
2 1 9 -5 
2 2 -6 -7 
2 1 -8 -9 
2 1 10 -10 
2 1 -11 -12 

NorwegianForest avatar Dec 15 '20 11:12 NorwegianForest