zupt/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Cristian Cezar Moisés 124958aea9 v4.2.0: full (pure) post-quantum mode + critical dedup nonce fix
Add a native full post-quantum encryption mode and fix a critical
keystream-reuse bug in deduplicated encrypted archives.

Full post-quantum mode (--pq-only)
- New envelope type 0x06 (ZUPT_ENC_PQ_ONLY): ML-KEM-768 (FIPS 203) as
  the sole key-establishment mechanism, with no classical X25519
  component. Archive key = SHA3-512(ml_ss || ml_ct || "ZUPT-PQ-ONLY-v1").
- For compliance postures that require a single NIST-standardised PQ
  primitive with no classical KEM in the envelope (CNSA 2.0-style
  "PQ-only"). Hybrid --pq stays the recommended default; --pq-only has
  no classical fallback, so a break of ML-KEM-768 alone breaks it.
- keygen --pq-only / keygen --pub --pq-only (ZPQK magic, 1200B pub /
  3600B priv; not interchangeable with hybrid --pq keys). Wrong or
  tampered ciphertext is rejected via ML-KEM FO implicit rejection plus
  the HMAC-SHA256 Encrypt-then-MAC envelope. In-tree, default build.

Security (critical): AES-256-CTR keystream reuse under --dedup
- Dedup assigns block sequence 0 to every data block (the sentinel that
  keeps cross-file dedup references authenticating consistently). The
  per-block nonce was base_nonce XOR block_seq, so under --dedup every
  block collapsed to the same nonce, reusing the CTR keystream across
  distinct plaintexts (a many-time-pad). Each block now uses a fresh
  random 128-bit nonce stored in the block prefix and bound into the
  block MAC; block_seq is still bound as MAC AAD. Regression test:
  tests/test_dedup_nonce.sh. Re-encrypt any --dedup encrypted archives
  written by <= 4.1.0.

Other
- keygen --sdk / --box on a source-only build now fails with a clear
  message pointing to native --pq / --pq-only (or a WITH_SDK=1 build).
- Documentation: README, SECURITY, THREAT_MODEL, man page, CHANGELOG,
  and all packaging recipes updated for the new mode and the security
  fix; version bumped to 4.2.0. Wire format v1.6 unchanged (0x06 is
  additive).

Validation: make check 16/16, quick suite 11/11 (incl. PQ-only),
dedup-nonce regression (all block nonces distinct), cppcheck clean.
2026-07-09 21:15:14 -03:00
..
fuzz_decompress.c v2.2.2 2026-05-01 09:58:47 -03:00
fuzz_format.c v2.2.2 2026-05-01 09:58:47 -03:00
fuzz_vv_decompress.c v2.2.2 2026-05-01 09:58:47 -03:00
regression.sh v2.2.2 2026-05-01 09:58:47 -03:00
run_quick.sh v4.2.0: full (pure) post-quantum mode + critical dedup nonce fix 2026-07-09 21:15:14 -03:00
test_arg_order.sh v2.2.2 2026-05-01 09:58:47 -03:00
test_audit.sh tests: make 'make check' pass on the source-only (WITH_SDK=0) build 2026-07-08 16:15:04 -03:00
test_audit_flake.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_block_swap.sh v2.2.2 2026-05-01 09:58:47 -03:00
test_codec_exact_size.c v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_codec_exact_size.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_completions_manpage.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_ct_timing.c v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_ct_timing.sh tests: make 'make check' pass on the source-only (WITH_SDK=0) build 2026-07-08 16:15:04 -03:00
test_dedup_nonce.sh v4.2.0: full (pure) post-quantum mode + critical dedup nonce fix 2026-07-09 21:15:14 -03:00
test_dedup_props.sh v2.2.2 2026-05-01 09:58:47 -03:00
test_dist_reproducible.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_f06_hmac.c v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_f08_topmac.sh tests: make 'make check' pass on the source-only (WITH_SDK=0) build 2026-07-08 16:15:04 -03:00
test_f09_preface.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_f10_kdf_default.sh tests: make 'make check' pass on the source-only (WITH_SDK=0) build 2026-07-08 16:15:04 -03:00
test_f11_authfail_message.sh tests: make 'make check' pass on the source-only (WITH_SDK=0) build 2026-07-08 16:15:04 -03:00
test_f12_comment.sh tests: make 'make check' pass on the source-only (WITH_SDK=0) build 2026-07-08 16:15:04 -03:00
test_gui_branding.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_help_consistency.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_hmac_incremental.c v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_hmac_incremental.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_kdf_transparency.c v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_kdf_transparency.sh tests: make 'make check' pass on the source-only (WITH_SDK=0) build 2026-07-08 16:15:04 -03:00
test_packaging_syntax.sh docs: complete zupt → vaptvupt rename; README v4.0.0 refresh 2026-06-11 22:32:31 -03:00
test_path_traversal.sh v2.2.2 2026-05-01 09:58:47 -03:00
test_pq.sh v2.2.2 2026-05-01 09:58:47 -03:00
test_pqbox.sh tests: make 'make check' pass on the source-only (WITH_SDK=0) build 2026-07-08 16:15:04 -03:00
test_sdk.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_sha256_shani.c v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_sha256_shani.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_static_analysis.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_threaded.sh v2.2.2 2026-05-01 09:58:47 -03:00
test_vaptvupt.c v2.1.7: Zupt is now licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later) + VaptVupt v2.46.1(GPLv3) 2026-04-26 01:47:45 -03:00
test_vectors.c v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00
test_vv_decode_slack.sh v4.0.0: codec 2.60.4 security release, --pq-box sealed-box mode, F-16 fix 2026-06-10 18:48:58 -03:00