← Back to section · Research Resources

Version Pinning and Reproducible Citation: Letting Others Find the Same Code You Used

Most reproduction disputes over cryptographic code come down to versions left unstated. This guide gives the complete method for citing code resources: tags and commit hashes, license checking, archival evidence, environment records, and judging maintenance status.

Published 22 November 2026 · 6 min read · PQ Frontier

Version Pinning and Reproducible Citation: Letting Others Find the Same Code You Used
AI-generated site artwork
Video explainer · Open Source Code Index: from repositories to trusted code

Why version is the first variable in reproduction

Earlier guides in this section repeat one warning: state your versions. It deserves an article of its own because version problems in cryptographic code are more insidious than in ordinary software. The same algorithm’s specification differs before and after standardization; the same repository at different tags may align with different submission rounds; the portable and optimized builds of one implementation agree in behavior but diverge wildly in performance — leave any of these unstated and a reproducer silently lands on a different piece of code, then mistakes the difference for a conclusion about the algorithm. This guide collects the version and citation norms scattered across the other guides into one directly executable checklist, applicable to every code resource this section covers.

The citation four-tuple and how to write it

When citing code in a paper, report, or experiment record, fix all four items: the project name (with repository address), a version identifier (a release tag preferably, or the full commit hash when no tag exists), the algorithm specification version it aligns with (which submission round, which draft, or which FIPS number), and the retrieval date. A commit hash looks clumsy, but it is the only anchor that survives repository restructuring: tags can be moved and branches rewritten, while the code content a hash names never changes.

If an experiment depends on build options (the enabled algorithm subset, optimization switches, target instruction set), those options are as important as the version number and belong in the same citation record. Environment information — operating system, compiler version, processor model — is required for performance conclusions and may be abbreviated for correctness ones. A practical habit: keep a plain-text “environment and version inventory” file in the project repository, update it whenever you produce a result you intend to cite, and quote from it when writing, instead of reconstructing versions from memory later.

Archival evidence: when repositories disappear or change

Open-source repositories are not permanent archives: projects get renamed, move hosts, delete old branches, and occasionally entire repositories go offline. For code an experiment critically depends on, the safe practice is double preservation. The first is public software archives (of the Software Heritage kind, whose mission is to preserve all open-source code), which archive by content hash and can be cited by archive identifier. The second is academic archiving: some platforms generate DOI-backed archival records for a designated version of a code repository (such as the integration between Zenodo and code hosting platforms), suitable for a paper’s reference list.

Local retention matters just as much: keep an archive of the exact source version used (together with its license files and test vectors) alongside the experiment data, and record its checksum. Then, whatever happens upstream, you can produce the precise code you used when challenged. The floor of reproducibility is not “the code is on the internet” but “I can produce the code as it was”.

How to check licenses

The licensing picture of cryptographic code is more complicated than it looks. Submission package code is provided by each team under its own terms; inside an aggregate library, individual implementations often carry independent licenses beyond the main one; and a protocol stack’s license may differ from its algorithm modules’. The checking method is a fixed three steps: read the license file at the repository root for the main license; then go directory by directory looking for each implementation’s own license or copyright header, marking anything inconsistent with the main license; finally, check whether the project documentation makes additional license statements about particular algorithms. For commercial use, redistribution, or closed-source integration, any ambiguity at any step should stop you and prompt verification, rather than defaulting to the most permissive reading.

One more small but common misunderstanding: code being publicly visible does not mean use is granted. A repository with no license file at all is, under the default rules of most jurisdictions, all-rights-reserved; research use has room for discussion, but product integration carries clear risk. When you meet such a repository, prefer an alternative implementation with clear licensing — the aggregate libraries and verified projects introduced in this section are usually more disciplined on exactly this point.

Locking versions with tools

Beyond manual records, tools turn version pinning into an automatic act. For the C/C++-centric world of cryptographic code, the common practice is to bring dependencies into your own repository as submodules or fixed archive packages with the corresponding lock record committed (the commit hash a submodule points at is itself the lock); for language bindings with package managers, use the lockfile to pin every transitive dependency. Container images are the heavier but more thorough option: freeze the compiler, dependencies, and build scripts into one image, and the image digest becomes the environment’s hash. Whatever the tool, the principle is the same: make “reproduce” something one command accomplishes, not a page of prose.

Note that locking is not the same as freezing forever: the point of pinning is reproducibility of experiments, not refusal of security updates. A sane cadence is to lock versions hard while an experiment runs, then, after results are published or delivered, assess upgrades against maintenance status, re-run test vectors and benchmarks after upgrading, and record the old–new differences. Half the discipline of version management is locking; the other half is unlocking on schedule.

Judging maintenance status: how long can this code be followed

For long-term topics, maintenance status matters as much as features when choosing code. Four signals help judge it: whether releases and commits continue (look at the last year’s activity, not total age); whether maintainers respond in the issue tracker (especially to security-related reports); whether there is a clear version-support policy (which branches still receive fixes); and how quickly the project follows upstream changes (for example, how soon after a standard was finalized an aligned release appeared). Conversely, a repository marked archived, years without commits and unanswered issues, or documentation still citing a superseded draft are all signals that migration is due.

One final time-dimension detail: recording the retrieval date in a citation is not formalism. Code resources evolve continuously, and assertions such as “library X supports algorithm Y” hold only as of the stated date; writing the date down is both honesty toward the reader and a validity label on your own conclusion. The project statuses given across this section’s guides should be read under the same principle — the repository’s actual state on the day you consult it is what counts.

Tags: reproducibilityversioninglicensingcitation practice