# mister-maker/crypto-test-files architecture

> Architecture diagram of the GitHub repository mister-maker/crypto-test-files, 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/mister-maker/crypto-test-files
- Repository: https://github.com/mister-maker/crypto-test-files

## Overview

This repository is a synthetic multi-language crypto corpus for testing static-analysis and crypto-inventory scanners, not a functioning cryptography product. Its main workflow is corpus generation followed by scanner evaluation; benchmark branches cover realistic crypto, quantum-security classifications, false positives, and evasion regressions. Generated language directories provide algorithm-heavy samples. The README and sampled sources establish the corpus purpose, but do not show scanner implementation or generator-to-file calls, so those relationships are left out.

Main entry points: [`generate_corpus.py`](https://github.com/mister-maker/crypto-test-files/blob/main/generate_corpus.py) (Corpus generator), [`generate_correct.py`](https://github.com/mister-maker/crypto-test-files/blob/main/generate_correct.py) (Correct-sample generator), [`c`](https://github.com/mister-maker/crypto-test-files/tree/main/c) (C crypto samples), [`cpp`](https://github.com/mister-maker/crypto-test-files/tree/main/cpp) (C++ crypto samples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Corpus generation"]
  node_corpus_generator["Corpus generator<br/>[generate_corpus.py]"]
  node_correct_generator["Correct-sample generator"]
end

subgraph group_samples["Language samples"]
  node_c_samples["C crypto samples"]
  node_cpp_samples["C++ crypto samples"]
  node_csharp_samples["C&#35; crypto samples"]
  node_go_samples["Go crypto samples"]
  node_java_samples["Java crypto samples"]
  node_js_samples["JavaScript crypto samples"]
  node_python_samples["Python crypto samples"]
  node_ruby_samples["Ruby crypto samples"]
  node_rust_samples["Rust crypto samples"]
  node_ts_samples["TypeScript crypto samples"]
end

subgraph group_benchmarks["Scanner benchmarks"]
  node_quantum_vulnerable["Weak crypto cases"]
  node_quantum_resistant["Symmetric crypto cases"]
  node_quantum_safe["Post-quantum cases"]
  node_false_positives["False-positive cases"]
  node_correct_crypto["Correct crypto cases"]
  node_evasion["Evasion regressions"]
end

node_scanner_user(("Scanner evaluator"))

node_scanner_user -.->|"generates corpus"| node_corpus_generator
node_scanner_user -.->|"generates examples"| node_correct_generator
node_scanner_user -.->|"scans samples"| node_c_samples
node_scanner_user -.->|"scans samples"| node_cpp_samples
node_scanner_user -.->|"scans samples"| node_csharp_samples
node_scanner_user -.->|"scans samples"| node_go_samples
node_scanner_user -.->|"scans samples"| node_java_samples
node_scanner_user -.->|"scans samples"| node_js_samples
node_scanner_user -.->|"scans samples"| node_python_samples
node_scanner_user -.->|"scans samples"| node_ruby_samples
node_scanner_user -.->|"scans samples"| node_rust_samples
node_scanner_user -.->|"scans samples"| node_ts_samples
node_scanner_user -.->|"checks detection"| node_quantum_vulnerable
node_scanner_user -.->|"checks detection"| node_quantum_resistant
node_scanner_user -.->|"checks detection"| node_quantum_safe
node_scanner_user -.->|"checks precision"| node_false_positives
node_scanner_user -.->|"checks precision"| node_correct_crypto
node_scanner_user -.->|"tests robustness"| node_evasion

click node_corpus_generator "https://github.com/mister-maker/crypto-test-files/blob/main/generate_corpus.py"
click node_correct_generator "https://github.com/mister-maker/crypto-test-files/blob/main/generate_correct.py"
click node_c_samples "https://github.com/mister-maker/crypto-test-files/tree/main/c"
click node_cpp_samples "https://github.com/mister-maker/crypto-test-files/tree/main/cpp"
click node_csharp_samples "https://github.com/mister-maker/crypto-test-files/tree/main/csharp"
click node_go_samples "https://github.com/mister-maker/crypto-test-files/tree/main/go"
click node_java_samples "https://github.com/mister-maker/crypto-test-files/tree/main/java"
click node_js_samples "https://github.com/mister-maker/crypto-test-files/tree/main/javascript"
click node_python_samples "https://github.com/mister-maker/crypto-test-files/tree/main/python"
click node_ruby_samples "https://github.com/mister-maker/crypto-test-files/tree/main/ruby"
click node_rust_samples "https://github.com/mister-maker/crypto-test-files/tree/main/rust"
click node_ts_samples "https://github.com/mister-maker/crypto-test-files/tree/main/typescript"
click node_quantum_vulnerable "https://github.com/mister-maker/crypto-test-files/tree/main/quantum-vulnerable"
click node_quantum_resistant "https://github.com/mister-maker/crypto-test-files/tree/main/quantum-resistant"
click node_quantum_safe "https://github.com/mister-maker/crypto-test-files/tree/main/quantum-safe"
click node_false_positives "https://github.com/mister-maker/crypto-test-files/tree/main/false-positives"
click node_correct_crypto "https://github.com/mister-maker/crypto-test-files/tree/main/correct-crypto"
click node_evasion "https://github.com/mister-maker/crypto-test-files/tree/main/evasion-tests"

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_corpus_generator,node_correct_generator toneBlue
class node_c_samples,node_cpp_samples,node_csharp_samples,node_go_samples,node_java_samples,node_js_samples,node_python_samples,node_ruby_samples,node_rust_samples,node_ts_samples toneAmber
class node_quantum_vulnerable,node_quantum_resistant,node_quantum_safe,node_false_positives,node_correct_crypto,node_evasion toneMint
class node_scanner_user toneIndigo
```

## Components

### Corpus generation

- [Corpus generator](https://github.com/mister-maker/crypto-test-files/blob/main/generate_corpus.py): `generate_corpus.py`
- [Correct-sample generator](https://github.com/mister-maker/crypto-test-files/blob/main/generate_correct.py): `generate_correct.py`

### Language samples

- [C crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/c): `c`
- [C++ crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/cpp): `cpp`
- [C# crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/csharp): `csharp`
- [Go crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/go): `go`
- [Java crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/java): `java`
- [JavaScript crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/javascript): `javascript`
- [Python crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/python): `python`
- [Ruby crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/ruby): `ruby`
- [Rust crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/rust): `rust`
- [TypeScript crypto samples](https://github.com/mister-maker/crypto-test-files/tree/main/typescript): `typescript`

### Scanner benchmarks

- [Weak crypto cases](https://github.com/mister-maker/crypto-test-files/tree/main/quantum-vulnerable): `quantum-vulnerable`
- [Symmetric crypto cases](https://github.com/mister-maker/crypto-test-files/tree/main/quantum-resistant): `quantum-resistant`
- [Post-quantum cases](https://github.com/mister-maker/crypto-test-files/tree/main/quantum-safe): `quantum-safe`
- [False-positive cases](https://github.com/mister-maker/crypto-test-files/tree/main/false-positives): `false-positives`
- [Correct crypto cases](https://github.com/mister-maker/crypto-test-files/tree/main/correct-crypto): `correct-crypto`
- [Evasion regressions](https://github.com/mister-maker/crypto-test-files/tree/main/evasion-tests): `evasion-tests`

### Other components

- **Scanner evaluator**

## Connections

- Scanner evaluator → Corpus generator: generates corpus (evidence: `README.md`)
- Scanner evaluator → Correct-sample generator: generates examples (evidence: `README.md`)
- Scanner evaluator → C crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → C++ crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → C# crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → Go crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → Java crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → JavaScript crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → Python crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → Ruby crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → Rust crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → TypeScript crypto samples: scans samples (evidence: `README.md`)
- Scanner evaluator → Weak crypto cases: checks detection (evidence: `README.md`)
- Scanner evaluator → Symmetric crypto cases: checks detection (evidence: `README.md`)
- Scanner evaluator → Post-quantum cases: checks detection (evidence: `README.md`)
- Scanner evaluator → False-positive cases: checks precision (evidence: `README.md`)
- Scanner evaluator → Correct crypto cases: checks precision (evidence: `README.md`)
- Scanner evaluator → Evasion regressions: tests robustness (evidence: `README.md`)
