# lordwicked/image-encryption-accelerator architecture

> Architecture diagram of the GitHub repository lordwicked/image-encryption-accelerator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lordwicked/image-encryption-accelerator
- Repository: https://github.com/lordwicked/image-encryption-accelerator

## Overview

This is a Chisel hardware-generator project for an FPGA image-encryption accelerator. The README describes an image-read → Ascon-AEAD128 encryption/decryption → saved-image workflow, but the only sampled runtime module is a byte-wide pass-through; its source explicitly says the encryption core is not yet instantiated. Accordingly, the documented workflow is shown as unverified rather than implemented. Source evidence is limited to the README and that module.

Main entry points: [`src/main/scala/engine/PassThroughEngine.scala`](https://github.com/lordwicked/image-encryption-accelerator/blob/main/src/main/scala/engine/PassThroughEngine.scala) (Pass-through engine), [`src/main/scala/engine`](https://github.com/lordwicked/image-encryption-accelerator/tree/main/src/main/scala/engine) (Ascon-AEAD128)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_image_input(("Image input"))
node_stream_engine["Pass-through engine"]
node_ascon["Ascon-AEAD128"]
node_image_output(("Saved image"))
node_fpga(("FPGA target"))

node_image_input -.->|"streams bytes"| node_stream_engine
node_stream_engine -.->|"would feed"| node_ascon
node_ascon -.->|"would save"| node_image_output
node_stream_engine -.->|"targets"| node_fpga

click node_stream_engine "https://github.com/lordwicked/image-encryption-accelerator/blob/main/src/main/scala/engine/PassThroughEngine.scala"
click node_ascon "https://github.com/lordwicked/image-encryption-accelerator/tree/main/src/main/scala/engine"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_image_input,node_image_output,node_fpga toneIndigo
class node_stream_engine,node_ascon toneTeal
```

## Components

### Other components

- **Image input**
- [Pass-through engine](https://github.com/lordwicked/image-encryption-accelerator/blob/main/src/main/scala/engine/PassThroughEngine.scala): `src/main/scala/engine/PassThroughEngine.scala`
- [Ascon-AEAD128](https://github.com/lordwicked/image-encryption-accelerator/tree/main/src/main/scala/engine): `src/main/scala/engine`
- **Saved image**
- **FPGA target**

## Connections

- Image input → Pass-through engine: streams bytes
- Pass-through engine → Ascon-AEAD128: would feed
- Ascon-AEAD128 → Saved image: would save
- Pass-through engine → FPGA target: targets (evidence: `README.md`)
