How ascon/ascon-hardware works
This software subset provides Ascon v1.2 reference cryptography and cryptotvgen, a command-line tool for producing hardware test vectors. The documented workflow is to prepare candidate libraries, select vector-generation options, run generation, and use the resulting vectors with the hardware testbench. The graph includes both AEAD and hashing reference variants and their permutation layer. Relationships involving unexcerpted implementations are limited to references in the SOURCE INDEX or README; the hardware-side consumption of generated files is documented, not represented as inspected source.
Main entry points: generator.py Vector generator · round.h Round functions · cli.py CLI · permutations.h AEAD permutations
Components 20
Vector generation
- CLI
software/cryptotvgen/cryptotvgen/cli.py - Options
software/cryptotvgen/cryptotvgen/options.py - Vector generator
software/cryptotvgen/cryptotvgen/generator.py - Library preparation
software/cryptotvgen/cryptotvgen/prepare_libs.py - Test vectors
AEAD references
- Ascon-128 AEAD
software/ascon_ref/crypto_aead/ascon128v12/ref/encrypt.c - Ascon-128 decrypt
software/ascon_ref/crypto_aead/ascon128v12/ref/decrypt.c - Ascon-128a AEAD
software/ascon_ref/crypto_aead/ascon128av12/ref/encrypt.c - Ascon-128a decrypt
software/ascon_ref/crypto_aead/ascon128av12/ref/decrypt.c
Hash references
- Ascon hash
software/ascon_ref/crypto_hash/asconhashv12/ref/hash.c - Ascon- a hash
software/ascon_ref/crypto_hash/asconhashav12/ref/hash.c
Crypto primitives
- AEAD permutations
software/ascon_ref/crypto_aead/ascon128v12/ref/permutations.h - AEAD-a permutations
software/ascon_ref/crypto_aead/ascon128av12/ref/permutations.h - Hash permutations
software/ascon_ref/crypto_hash/asconhashv12/ref/permutations.h - Hash-a permutations
software/ascon_ref/crypto_hash/asconhashav12/ref/permutations.h - Round functions
software/ascon_ref/crypto_aead/ascon128v12/ref/round.h - State representation
software/ascon_ref/crypto_aead/ascon128v12/ref/ascon.h - State tracing
software/ascon_ref/crypto_aead/ascon128v12/ref/printstate.h
Other components
- Engineer
- Hardware testbench
Connections 24
- Engineer → CLI: runs
- CLI → Options: parses
software/cryptotvgen/cryptotvgen/cli.py - CLI → Library preparation: prepares libraries
software/cryptotvgen/cryptotvgen/cli.py - CLI → Vector generator: starts generation
software/cryptotvgen/cryptotvgen/cli.py - Vector generator → Options: uses routines
software/cryptotvgen/cryptotvgen/generator.py - Vector generator → Library preparation: loads library helpers
software/cryptotvgen/cryptotvgen/generator.py - Vector generator → Ascon-128 AEAD: loads crypto library
- Vector generator → Ascon-128a AEAD: loads crypto library
- Vector generator → Ascon hash: loads crypto library
- Vector generator → Ascon- a hash: loads crypto library
- Vector generator → Test vectors: writes vectors
- Ascon-128 AEAD → AEAD permutations: uses permutation
software/ascon_ref/crypto_aead/ascon128v12/ref/encrypt.c - Ascon-128 decrypt → AEAD permutations: uses permutation
software/ascon_ref/crypto_aead/ascon128v12/ref/decrypt.c - Ascon-128a AEAD → AEAD-a permutations: uses permutation
software/ascon_ref/crypto_aead/ascon128av12/ref/encrypt.c - Ascon-128a decrypt → AEAD-a permutations: uses permutation
software/ascon_ref/crypto_aead/ascon128av12/ref/decrypt.c - Ascon hash → Hash permutations: uses permutation
software/ascon_ref/crypto_hash/asconhashv12/ref/hash.c - Ascon- a hash → Hash-a permutations: uses permutation
software/ascon_ref/crypto_hash/asconhashav12/ref/hash.c - AEAD permutations → Round functions: applies rounds
software/ascon_ref/crypto_aead/ascon128v12/ref/permutations.h - AEAD-a permutations → Round functions: applies rounds
software/ascon_ref/crypto_aead/ascon128av12/ref/permutations.h - Hash permutations → Round functions: applies rounds
software/ascon_ref/crypto_hash/asconhashv12/ref/permutations.h - Hash-a permutations → Round functions: applies rounds
software/ascon_ref/crypto_hash/asconhashav12/ref/permutations.h - Round functions → State representation: updates
software/ascon_ref/crypto_aead/ascon128v12/ref/round.h - AEAD permutations → State tracing: traces state
software/ascon_ref/crypto_aead/ascon128v12/ref/permutations.h - Hardware testbench → Test vectors: consumes vectors