Skip to content

AlxLib 1.6.1

Latest

Choose a tag to compare

@AlexisVon AlexisVon released this 11 Nov 02:21

Patch release — the archive decoder gets a single header probe, the encoder factories cap the block-size parameter, and the design docs shed their dated records.

One header probe: decoder::probe(stream) returns pktype{clan, cmps, encrypt, version} — the common head first, then each version from the newest down, the first to accept winning; every field is zero when no family claims the stream. decoder::create dispatches on the same probe, so the reader can no longer drift from the factory. The static is_encrypt(stream) / is_compress(stream) are gone; read the returned fields (the packed word is also available as valid()).

Block-size cap: the three encoder::create* factories refuse _blck_size of 4 GiB and above with badparams, the same style as the v2 iteration check.

Test anchors: a 256-byte AES-256-GCM known-answer vector exercises the eight-block CTR / four-way GHASH path, and v2 gains the truncation, trailer-tamper and whole-block-relocation cases.

Docs: the release log now lives in doc/migration.md; the design docs carry no dated records. §4.4 restates the v1 CRC as error detection — a known-plaintext attacker can forge, which is now a boundary — and §4.6/§4.5 correct the GCM query count and the header byte order.

No format change: v1 and v2 archives stay byte-identical, .axp and vtype are untouched, and the SONAME stays .so.1.6.

Assets: AlxLib-1.6.1-linux-x64-g845b899-slim.tar.gz (headers, the merged static library without debug info, docs and third-party notices) plus its .sha256.