all: run_attr run_e_attr run_id run_id2 run_prove clean: @rm -f *.pem *.der *.log pfile setup: creddy --generate --cn IceCream creddy --generate --cn Chocolate run_attr: make clean rm -rf attr.log make setup ./abac_attr.py IceCream_ID.pem IceCream_private.pem IceCream_attr.der Chocolate_ID.pem 1>attr.log 2>&1 run_e_attr: make clean rm -rf e_attr.log pfile echo "dumdum" > pfile openssl genrsa -des3 -out Soda_private.pem -passout file:pfile creddy --generate --cn Soda --key Soda_private.pem --p=pfile creddy --generate --cn Cream ./abac_e_attr.py Soda_ID.pem Soda_private.pem Soda_attr.der pfile Cream_ID.pem 1>e_attr.log 2>&1 run_id: make clean rm -rf id.log make setup ./abac_keyid.py IceCream_ID.pem 1>id.log 2>&1 run_id2: make clean rm -rf id2.log make setup ./abac_keyid.py IceCream_private.pem 1>id2.log 2>&1 run_prove: rm -rf prover.log make run_attr ./run_prover 1>prover.log 2>& 1