mei_rt2
Last change
on this file since 2e9455f 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
|
Rev | Line | |
---|
[bea18ef] | 1 | |
---|
| 2 | all: run_attr run_e_attr run_id run_id2 run_prove |
---|
| 3 | |
---|
[ba6027a] | 4 | clean: |
---|
[2485307] | 5 | @rm -f *.pem *.der *.log pfile |
---|
[ba6027a] | 6 | |
---|
[bea18ef] | 7 | setup: |
---|
| 8 | creddy --generate --cn IceCream |
---|
| 9 | creddy --generate --cn Chocolate |
---|
| 10 | |
---|
[ba6027a] | 11 | run_attr: |
---|
| 12 | make clean |
---|
| 13 | rm -rf attr.log |
---|
[bea18ef] | 14 | make setup |
---|
[ba6027a] | 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 |
---|
[bea18ef] | 29 | make setup |
---|
[ba6027a] | 30 | ./abac_keyid.py IceCream_ID.pem 1>id.log 2>&1 |
---|
| 31 | |
---|
| 32 | run_id2: |
---|
| 33 | make clean |
---|
| 34 | rm -rf id2.log |
---|
[bea18ef] | 35 | make setup |
---|
[ba6027a] | 36 | ./abac_keyid.py IceCream_private.pem 1>id2.log 2>&1 |
---|
[bea18ef] | 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.