I am trying to understand how Attribute Base Encryption (ABE) works. So, after downloading libfenc library from here, I built the source code on Ubuntu 12.04 without any error. Afterward, I tried to follow the library commands as follow:
Create the master secret and public parameters:
abe-setup -m CP
Generate key for user's attribute:
abe-keygen -m CP -a 'ONE,TWO,THREE,FOUR,FIVE' -o userCP.key
Encrypt the input file under a given policy:
abe-enc -m CP -i filename.txt -p "((ONE and TWO) or THREE)" -o outfile
With each executed command a file is generated (three files among which the encrypted file is created).
Now, when I try to decrypt the encrypted file "outfile" using:
abe-dec -m CP -k userCP.key -f outfile.cpabe
no file is generated at all, and I don't know if the encryption mechanism works or not !! does the code works or not !! am I missing something ?
EDIT (from comment)
Through this question I am seeking understanding the ABE encryption. It is not about the library AT ALL. it is about the basic understanding of the ABE mechanism. Believe me, the code itself is useless.