Skip to content

Commit

Permalink
Output to rsa<size>_repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
xuganyu96 committed Dec 11, 2023
1 parent fcfc4c3 commit 22fa3de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions marvin-toolkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ This document describes the procedure for replicating the analysis for the Marvi

```bash
docker build -t marvin:latest .
docker run -d --rm \
docker run --rm \
--name marvin \
-v /home/ec2-user/RSA/marvin-toolkit/keys:/home/rustcrypto/marvin-toolkit/keys \
-v /home/ec2-user/RSA/marvin-toolkit/results:/home/rustcrypto/marvin-toolkit/results \
marvin:latest
```
12 changes: 6 additions & 6 deletions marvin-toolkit/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ echo

# Generate ciphertexts
PYTHONPATH=tlsfuzzer ./marvin-venv/bin/python ./step2.py \
-c keys/cert.pem -o rsa${size} \
-c keys/cert.pem -o rsa${size}_repeat \
--repeat 100000 --verbose \
no_structure no_padding=48 signature_padding=8 \
valid_repeated_byte_payload="246 0xff" \
Expand All @@ -89,11 +89,11 @@ valid=0 valid=192 valid=246

# Run decryptions and analyze data
./example/rust-crypto/target/release/rust-crypto \
-i rsa${size}/ciphers.bin \
-o rsa${size}/raw_times.csv -k keys/pkcs8.pem -n $size_bytes
-i rsa${size}_repeat/ciphers.bin \
-o rsa${size}_repeat/raw_times.csv -k keys/pkcs8.pem -n $size_bytes
PYTHONPATH=tlsfuzzer marvin-venv/bin/python3 tlsfuzzer/tlsfuzzer/extract.py \
-l rsa${size}/log.csv --raw-times rsa${size}/raw_times.csv \
-o rsa${size}/ \
-l rsa${size}_repeat/log.csv --raw-times rsa${size}_repeat/raw_times.csv \
-o rsa${size}_repeat/ \
--clock-frequency 1000
PYTHONPATH=tlsfuzzer marvin-venv/bin/python3 tlsfuzzer/tlsfuzzer/analysis.py \
-o rsa${size}/ --verbose
-o rsa${size}_repeat/ --verbose

0 comments on commit 22fa3de

Please sign in to comment.