monocypher 4.0.3-1
Package Information
| Description | easy to use, portable, and auditable crypto library Monocypher is an easy to use, easy to deploy, auditable crypto library written in portable C. It approaches the size of TweetNaCl and the speed of libsodium. Features: * Authenticated Encryption with XChaCha20 and Poly1305 (RFC 8439). * Hashing and key derivation with BLAKE2b (and SHA-512). * Password Hashing with Argon2. * Public Key Cryptography with X25519 key exchanges. * Public Key Signatures with EdDSA and Ed25519. * Steganography and PAKE with Elligator 2. This package provides the Monocypher library. |
|---|---|
| Maintainer | zil00g <zil00g@protonmail.com> |
| Changed By | zil00g <zil00g@protonmail.com> |
| Sponsor | maytham@debian.org |
| Distribution | unstable |
| Architecture | any |
| VCS | git: https://salsa.debian.org/debian/monocypher.git (browse) |
| Closes | #946635 |
| Tracker | https://tracker.debian.org/pkg/monocypher |
| Uploaded | 3 hours ago |
New Package Report
.changes
| Date | Sat, 28 Nov 2026 10:39:22 +0000 |
|---|---|
| Source | monocypher |
| Version | 4.0.3-1 |
| Changed-By | zil00g <zil00g@protonmail.com> |
| Architecture | source amd64 |
| Distribution | unstable |
Changelog
monocypher (4.0.3-1) unstable; urgency=medium . * Initial release. Closes: #946635 * Based on the packaging work by dzwdz <not@dzwdz.net>.
.dsc
| Section | libs |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | libmonocypher4 deb libs optional arch=any libmonocypher4-dev deb libdevel optional arch=any |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Monocypher
Upstream-Contact: Loup Vaillant <monocypher@loup-vaillant.fr>
Source: https://monocypher.org/
#
# Please double check copyright with the licensecheck(1) command.
Files: *
Copyright: 2017-2018 Michael Savage
2017-2023 Fabio Scotoni
2017-2023 Loup Vaillant
2020 Mike Pechkin
2017-2020 Richard Walmsley
2022 Samuel Lucas
License: BSD-2-Clause or CC0-1.0
Files: debian/*
Copyright: 2025 dzwdz <not@dzwdz.net>
2026 zil00g <zil00g@protonmail.com>
License: BSD-2-Clause or CC0-1.0
License: BSD-2-Clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License: CC0-1.0
On Debian systems, the full text of the CC0 1.0 Universal license
can be found in the file '/usr/share/common-licenses/CC0-1.0'.
DFSG Assistant LLM REVIEW 0 blocker, 0 important, 1 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 1 hour ago.
Report
DFSG NEW review for monocypher version 4.0.3-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: Yes - Packaging is of good quality: Yes
- Issues: 0 blocker, 0 important, 1 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
Upstream is dual-licensed BSD-2-Clause OR CC0-1.0; every file in the tree (sources, optional ed25519, tests, makefile, scripts, man pages and generated HTML) carries that dual-licence block with the same holders, and the few files without a header (test-vector tables, .editorconfig, monocypher.pc, README/CHANGELOG/AUTHORS) fall under the project-wide statement. debian/copyright is DEP-5, names every holder found (Loup Vaillant, Michael Savage, Fabio Scotoni, Mike Pechkin, Richard Walmsley, Samuel Lucas, plus the Debian packagers), uses correct short names, includes the BSD-2-Clause text inline and points at /usr/share/common-licenses/CC0-1.0 for CC0, which exists. No non-free terms found, and the third-party matter in the tree (SUPERCOP ref10, mandoc.css) is public domain.
Packaging
Packaging is careful and policy-conformant: debhelper-compat 14, Standards-Version 4.7.4 against Policy 4.7.4.1, correct Multi-Arch/sections/Vcs fields, a well-described DEP-3 patch that is forwarded, shared-library-only install with a pkg-config file made architecture-correct, symbols file for the SONAME library, man-page symlink, and real autopkgtests that compile the upstream test suite against the installed library. Hardening is applied through dpkg-buildflags (dh exports CFLAGS at compat 14, overriding upstream's -march=native default). The only finding is the symbols file's minimal version, which names a Debian package version that never existed.
Issues
minor packaging 1. libmonocypher4.symbols records @Base 4.0.2, a version that was never a Debian package ◂
- Files:
debian/libmonocypher4.symbols:3,debian/libmonocypher4.symbols:4-63,debian/changelog:1,debian/control:1 - Basis: checked, in the package or with a reference tool
- Evidence:
crypto_aead_init_djb@Base 4.0.2(and every other symbol) in a package whose changelog saysmonocypher (4.0.3-1) unstable; urgency=medium/* Initial release.; deb-symbols(5):symbol minimal-version [id-of-dependency-template],#MINVER#is replacedby a version check like "(>= minimal-version)". - Problem: The symbols-file version is the minimal version of the dependency template, i.e. the version of the Debian package that first provided the symbol. No libmonocypher4 4.0.2 was ever uploaded (the archive has no package of that name and the changelog calls this the initial release), so every generated dependency
libmonocypher4 (>= 4.0.2)names a version that does not exist. It is satisfiable today only because 4.0.3-1 is newer than 4.0.2, but the file misstates the package history and would silently allow an older library if one were ever uploaded. - Fix: Change the minimal version on every symbol to
@Base 4.0.3(upstream version, keeping the no-Debian-revision convention), or to bare@Baseif no versioned dependency is wanted.
Verified ◂
- debian/copyright is machine-readable DEP-5:
Format:is the 1.0 URL, stanzasFiles: *andFiles: debian/*, stand-alone License paragraphs for BSD-2-Clause and CC0-1.0; BSD-2-Clause text is included in full, CC0 is referenced to /usr/share/common-licenses/CC0-1.0, which exists on the system. - Upstream headers in src/monocypher.c, src/monocypher.h, src/optional/.c/.h, tests/.c/.h (except the vector tables), makefile, change-prefix.sh, doc/html/.html, doc/html/style.css and doc/man3/.3monocypher all state
SPDX-License-Identifier: BSD-2-Clause OR CC0-1.0and the same holder set as debian/copyright; only per-file year ranges drift (e.g. LICENCE.md2017-2019 Michael Savageagainst2017-2018in the copyright file, well inside minor drift). - Union of Copyright notices across the tree: Loup Vaillant, Michael Savage, Fabio Scotoni, Mike Pechkin, Richard Walmsley, Samuel Lucas - all present in the
Files: *stanza; AUTHORS.md additionally credits algorithm designers (Bernstein, Aumasson, Neves, Wilcox-O'Hearn, Biryukov, Dinu, Khovratovich, Duif, Schwabe, Lange, Yang), an acknowledgement in prose, not a copyright notice in any file. - src/monocypher.c carries no separate notice for its
Originally taken from SUPERCOP's ref10 implementationcode; ref10/SUPERCOP code is public domain, so no holder is missing for it. - doc/html/style.css's embedded mandoc.css block is
Written by Ingo Schwarze ... I place this file into the public domain ... without any conditions- a public-domain dedication with no notice-retention requirement; moreover doc/html is not installed in any binary package. - tests/vectors.h and tests/tis-ci-vectors.h are generated test-vector tables (
Generated with hard coded official vectors, and random vectors with libsodium and ed25519-donna); they contain only data, are compiled only into the test-suite binary, and are covered byFiles: *. - grep for non-free wording (non-commercial, no modification, research only,
Good, not Evil, proprietary) found nothing; the onlyAll rights reservedoccurrences are inside the BSD-2-Clause notice. The prescan's author check found no unnamed holder, consistent with my own grep. - debian/control: debhelper-compat (= 14) (provided by debhelper 14.5 in the archive), Standards-Version 4.7.4 vs Policy 4.7.4.1 (current), Homepage/Vcs-Git/Vcs-Browser, Sections libs/libdevel, Multi-Arch: same on both packages, -dev depends on
libmonocypher4 (= ${binary:Version}). - debian/rules: only the shared library is built (
dh_auto_build -- dynamic-library), the patched makefile installs to debian/tmp with PREFIX=/usr and LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH), and the after-install sed rewrites the .pc libdir to${prefix}/lib/<multiarch>; makefile adds -fPIC and links with $(LDFLAGS). - Hardening and flags: at compat 14 dh exports dpkg-buildflags variables (
set_buildflagscalled from /usr/bin/dh:641 and Dh_Lib.pm), so the makefile'sCFLAGS ?= ... -march=nativedefault is not used and DEB_BUILD_MAINT_OPTIONS=hardening=+all takes effect; the build does not use -march=native. - debian/patches/split-install-lib.patch has DEP-3 headers (Description, Author, Forwarded to upstream PR 305, Last-Update), adds only install-static-library/install-dynamic-library/install-headers targets and keeps install-lib's behaviour; series lists only it.
- Install split: libmonocypher4 gets /usr/lib//libmonocypher.so., -dev gets the unversioned .so symlink, both headers, /usr/lib/*/pkgconfig/monocypher.pc and the man pages; debian/libmonocypher4-dev.links gives
source targetorder per dh_link(1), creating monocypher.3monocypher from intro.3monocypher, and dh_compress rewrites the link to the .gz name (checked in /usr/bin/dh_compress). - debian/tests: two Test-commands compile tests/test.c and tests/utils.c from the source tree with
cc ... -lmonocypheragainst the installed library (and under valgrind), with libmonocypher4, libmonocypher4-dev and valgrind declared; the .dsc declaresTestsuite: autopkgtestandTestsuite-Triggers: valgrind. - Changelog: 4.0.3-1, distribution unstable, valid RFC-2822 date, matches the upstream version; gbp.conf and upstream/metadata fields are consistent; source format 3.0 (quilt).
- uscan found the packaged version as the newest upstream release (upstream
4.0.3, packaged4.0.3). - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (CC0-1.0).
Not confirmed ◂
- The package was not built and its autopkgtests were not run (read-only review); the produced binary layout is inferred from debian/rules, the install/link files, symbols and upstream makefile.
- That the built library exports exactly the symbols listed in debian/libmonocypher4.symbols, and that tests/test.c passes under the installed library - an sbuild/autopkgtest run would show this.
- File modes (the executable bit of debian/tests/test.sh and of the installed scripts) could not be inspected with the available tools.
Proposed changes ◂
None.
Uploader's response to the LLM review
The review is right that 4.0.2 was never a Debian package.
The symbols file comes from the earlier packaging work by dzwdz, which targeted upstream 4.0.2. Upstream 4.0.3 did not change the ABI. The exported symbol list is identical to 4.0.2, so the file was kept as it was.
The only effect is a generated dependency of libmonocypher4 (>= 4.0.2). The first version in Debian is 4.0.3-1, so this is always satisfied and nothing breaks.
If you prefer, I will bump all entries to 4.0.3 in the next upload. I would rather not ask for a new sponsored upload just for this, unless you want it.
— zil00g (zil00g), 0 hours ago