mei_rt2mei_rt2_fix_1
Last change
on this file since 33a9212 was
08b8da7,
checked in by Mei <mei@…>, 12 years ago
|
1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there
|
-
Property mode set to
100644
|
File size:
959 bytes
|
Line | |
---|
1 | |
---|
2 | all: run_attr run_e_attr run_id run_id2 run_prove |
---|
3 | |
---|
4 | clean: |
---|
5 | @rm -f *.pem *.der *.log pfile |
---|
6 | |
---|
7 | setup: |
---|
8 | creddy --generate --cn IceCream |
---|
9 | creddy --generate --cn Chocolate |
---|
10 | |
---|
11 | run_attr: |
---|
12 | make clean |
---|
13 | rm -rf attr.log |
---|
14 | make setup |
---|
15 | ./abac_attr.py IceCream_ID.pem IceCream_private.pem IceCream_attr.der Chocolate_ID.pem 1>attr.log 2>&1 |
---|
16 | |
---|
17 | run_e_attr: |
---|
18 | make clean |
---|
19 | rm -rf e_attr.log pfile |
---|
20 | echo "dumdum" > pfile |
---|
21 | openssl genrsa -des3 -out Soda_private.pem -passout file:pfile |
---|
22 | creddy --generate --cn Soda --key Soda_private.pem --p=pfile |
---|
23 | creddy --generate --cn Cream |
---|
24 | ./abac_e_attr.py Soda_ID.pem Soda_private.pem Soda_attr.der pfile Cream_ID.pem 1>e_attr.log 2>&1 |
---|
25 | |
---|
26 | run_id: |
---|
27 | make clean |
---|
28 | rm -rf id.log |
---|
29 | make setup |
---|
30 | ./abac_keyid.py IceCream_ID.pem 1>id.log 2>&1 |
---|
31 | |
---|
32 | run_id2: |
---|
33 | make clean |
---|
34 | rm -rf id2.log |
---|
35 | make setup |
---|
36 | ./abac_keyid.py IceCream_private.pem 1>id2.log 2>&1 |
---|
37 | |
---|
38 | run_prove: |
---|
39 | rm -rf prover.log |
---|
40 | make run_attr |
---|
41 | ./run_prover 1>prover.log 2>& 1 |
---|
Note: See
TracBrowser
for help on using the repository browser.