# taewook427/usag-kox architecture

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

- Interactive diagram: https://gitdiagram.com/taewook427/usag-kox
- Repository: https://github.com/taewook427/usag-kox

## Overview

USAG-KOX is a collection of small security-related extensions for the larger USAG project, rather than a single end-user application. Its documented modules cover secure transfer, encrypted virtual-file storage, UI helpers and Android utilities. The clearest user-facing flow shown is BaseUI receiving a public key through TP1; MemView is a separate in-memory data viewer that uses BaseUI sizing. The repository excerpts establish these links, but do not show how the other modules are orchestrated by the host project, so those connections are omitted.

Main entry points: [`BaseUI/BaseUI.go`](https://github.com/taewook427/usag-kox/blob/main/BaseUI/BaseUI.go) (Base UI helpers), [`MemView/MemView.go`](https://github.com/taewook427/usag-kox/blob/main/MemView/MemView.go) (Memory viewer), [`TP1/TP1.go`](https://github.com/taewook427/usag-kox/blob/main/TP1/TP1.go) (TP1 Go transfer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_transfer["Secure transfer"]
  node_tp1go["TP1 Go transfer<br/>[TP1.go]"]
  node_tp1java["TP1 Java transfer<br/>[TP1.java]"]
end

subgraph group_vault["Encrypted storage"]
  node_falsecryptjava["FalseCrypt Java<br/>[FalseCrypt.java]"]
  node_falsecryptio["Chunk storage<br/>[io.go]"]
  node_falsecryptvfs["Virtual filesystem<br/>[pevfs.go]"]
end

subgraph group_ui["User interface"]
  node_baseui["Base UI helpers<br/>[BaseUI.go]"]
  node_memview["Memory viewer<br/>[MemView.go]"]
end

subgraph group_android["Android utilities"]
  node_io1["Android file access<br/>[IO1.java]"]
  node_svcc1["Service communication bus<br/>[SVCC1.java]"]
end

node_user(("USAG host user"))

node_baseui -->|"receives via"| node_tp1go
node_memview -->|"uses sizing"| node_baseui

click node_tp1go "https://github.com/taewook427/usag-kox/blob/main/TP1/TP1.go"
click node_tp1java "https://github.com/taewook427/usag-kox/blob/main/TP1/TP1.java"
click node_falsecryptjava "https://github.com/taewook427/usag-kox/blob/main/FalseCrypt/FalseCrypt.java"
click node_falsecryptio "https://github.com/taewook427/usag-kox/blob/main/FalseCrypt/io.go"
click node_falsecryptvfs "https://github.com/taewook427/usag-kox/blob/main/FalseCrypt/pevfs.go"
click node_baseui "https://github.com/taewook427/usag-kox/blob/main/BaseUI/BaseUI.go"
click node_memview "https://github.com/taewook427/usag-kox/blob/main/MemView/MemView.go"
click node_io1 "https://github.com/taewook427/usag-kox/blob/main/IO1/IO1.java"
click node_svcc1 "https://github.com/taewook427/usag-kox/blob/main/SVCC1/SVCC1.java"

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_tp1go,node_tp1java,node_user toneBlue
class node_falsecryptjava,node_falsecryptio,node_falsecryptvfs toneAmber
class node_baseui,node_memview toneMint
class node_io1,node_svcc1 toneRose
```

## Components

### Secure transfer

- [TP1 Go transfer](https://github.com/taewook427/usag-kox/blob/main/TP1/TP1.go): `TP1/TP1.go`
- [TP1 Java transfer](https://github.com/taewook427/usag-kox/blob/main/TP1/TP1.java): `TP1/TP1.java`

### Encrypted storage

- [FalseCrypt Java](https://github.com/taewook427/usag-kox/blob/main/FalseCrypt/FalseCrypt.java): `FalseCrypt/FalseCrypt.java`
- [Chunk storage](https://github.com/taewook427/usag-kox/blob/main/FalseCrypt/io.go): `FalseCrypt/io.go`
- [Virtual filesystem](https://github.com/taewook427/usag-kox/blob/main/FalseCrypt/pevfs.go): `FalseCrypt/pevfs.go`

### User interface

- [Base UI helpers](https://github.com/taewook427/usag-kox/blob/main/BaseUI/BaseUI.go): `BaseUI/BaseUI.go`
- [Memory viewer](https://github.com/taewook427/usag-kox/blob/main/MemView/MemView.go): `MemView/MemView.go`

### Android utilities

- [Android file access](https://github.com/taewook427/usag-kox/blob/main/IO1/IO1.java): `IO1/IO1.java`
- [Service communication bus](https://github.com/taewook427/usag-kox/blob/main/SVCC1/SVCC1.java): `SVCC1/SVCC1.java`

### Other components

- **USAG host user**

## Connections

- Base UI helpers → TP1 Go transfer: receives via (evidence: `BaseUI/BaseUI.go`)
- Memory viewer → Base UI helpers: uses sizing (evidence: `MemView/MemView.go`)
