How hawike22405/lorenz-blake3-cipher works
This research prototype offers two distinct file-encryption workflows: the Rust lrz CLI encrypts, decrypts, or verifies raw image-byte containers, while a separate Python tool protects whole files with AES-256-GCM. Image conversion and evaluation scripts support the cipher workflow; separate tools analyze image statistics, prepare NIST test streams, and demonstrate a toy equivalent-key attack. The excerpts show CLI dispatch and script invocations, but do not expose all cipher internals or the evaluation runner, so those are represented at subsystem level.
Main entry points: main.rs LRZ CLI · image_demo.py Image Adapter · image_metrics.py Image Metrics · make_nist_bits.py NIST Prep
Components 12
Image Cipher
- Image Adapter
scripts/image_demo.py - LRZ CLI
code/src/main.rs - Cipher Engine
code/src/cipher.rs - Image Files
AES File Tool
- AES-GCM Tool
scripts/aead_file.py - Whole Files
Evaluation
- Image Metrics
scripts/image_metrics.py - NIST Prep
scripts/make_nist_bits.py - NIST Suite
Analysis
- Image Statistics
analysis/stats.py
Research Demo
- Toy Key Attack
attack/equivalent_key_attack.py
Other components
- User
Connections 17
- User → Image Adapter: selects image
README.md - Image Adapter → Image Files: reads and writes
scripts/image_demo.py - Image Adapter → LRZ CLI: invokes
scripts/image_demo.py - User → LRZ CLI: runs commands
README.md - LRZ CLI → Cipher Engine: encrypts, decrypts, verifies
code/src/main.rs - LRZ CLI → Image Files: reads and writes
code/src/main.rs - User → AES-GCM Tool: requests operation
README.md - AES-GCM Tool → Whole Files: reads and writes
scripts/aead_file.py - User → Image Metrics: runs evaluation
README.md - Image Metrics → LRZ CLI: invokes encryption and decryption
scripts/image_metrics.py - User → Image Statistics: requests statistics
README.md - Image Metrics → Image Statistics: uses statistics
scripts/image_metrics.py - User → NIST Prep: prepares bitstreams
README.md - NIST Prep → Image Files: reads containers
scripts/make_nist_bits.py - User → NIST Suite: runs tests
README.md - NIST Prep → NIST Suite: provides bitstreams
README.md - User → Toy Key Attack: runs demonstration
README.md