Network Working Group R. Heilos Internet-Draft EULNO Project Intended status: Informational 25 November 2026 Expires: 29 May 2027 The ELP8 Container Format for Geometric Wheel-8 Compression, Hash- Anchored Self-Alignment, and Multi-Gear Streaming draft-heilos-eulno-elp8-00 Abstract This document specifies the binary container format .elp8 (EULNO Layered Protocol 8) for streaming data compression based on counter- rotating modulo-8 wheel geometry, inward-mirror stream bisection, and hash-anchored phase alignment. Unlike conventional archive formats that treat checksums solely as passive post-decompression checks, .elp8 embeds an active Anchor Hash (SHA-256 or SHA-512) inside a variable-tier header (56, 88, or 152 bytes) to deterministically seed wheel sector alignment and enforce constant-time cryptographic self- validation across arbitrary stream sizes up to 2^64 - 1 bytes. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 29 May 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. Heilos Expires 29 May 2027 [Page 1] Internet-Draft ELP8 Container Format November 2026 This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Conventions and Terminology . . . . . . . . . . . . . . . . . 2 3. ELP8 Binary Container Layout . . . . . . . . . . . . . . . . 2 3.1. Header Field Definitions . . . . . . . . . . . . . . . . 3 4. Hash-Anchored Alignment and Multi-Chunk Gear Framing . . . . 4 5. Full-Lifecycle Security Considerations . . . . . . . . . . . 4 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 5 7. Normative References . . . . . . . . . . . . . . . . . . . . 5 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 6 1. Introduction Conventional compression containers append a checksum merely to detect bit errors after decoding completes. The ELP8 (EULNO Layered Protocol 8) format couples the cryptographic digest of the uncompressed stream directly to its geometric phase alignment. By deriving the starting spoke S_0 on an M-spoke modular wheel from the Anchor Hash, encoders and decoders share a deterministic geometric reference point without transmitting external phase tables. 2. Conventions and Terminology The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 (RFC 2119 and RFC 8174) when, and only when, they appear in all capitals, as shown here. All multi-byte integer fields in the ELP8 header and chunk frames are encoded in network byte order (big-endian). 3. ELP8 Binary Container Layout Every compliant .elp8 stream MUST begin with a 24-byte Base Header followed by the Anchor Hash (32 or 64 bytes) and an optional 64-byte Origin Authentication Tag, resulting in a total header length of 56, 88, or 152 bytes. Heilos Expires 29 May 2027 [Page 2] Internet-Draft ELP8 Container Format November 2026 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Magic Bytes ("ELP8") | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Version | Flags | Wheel Modulus | Hash Algo | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Original Size (uint64) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload Length (uint64) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Anchor Hash (256 bits or 512 bits) ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Optional Origin Authentication Tag (512 bits) ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Compressed Payload ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 3.1. Header Field Definitions Magic Bytes (4 bytes, offset 0x00): MUST be the exact ASCII sequence "ELP8" (0x45 0x4C 0x50 0x38). Version (1 byte, offset 0x04): MUST be set to 0x01 for this specification. Flags (1 byte, offset 0x05): Bit 0 (0x01): Counter-Rotating Wheel Mode (1 = active). Bit 1 (0x02): Inward-Mirror-Split (1 = left half [0..mid-1] advances clockwise; right half [mid..n-1] advances counter-clockwise inward from n-1 to mid). Bit 2 (0x04): Multi- Chunk Gear Mode (1 = framed chunk stream using Gears G0..G6). Bit 3 (0x08): Authenticated Origin (1 = 64-byte HMAC-SHA512 / Ed25519 tag present immediately following Anchor Hash). Bits 4-7: Reserved; encoders MUST set to 0 and decoders MUST ignore. Wheel Modulus M (1 byte, offset 0x06): Modular spoke count (1..255). Default MUST be 0x08. Value 0x00 MUST be rejected. Hash Algorithm ID (1 byte, offset 0x07): 0x01 = SHA-256 (32-byte Heilos Expires 29 May 2027 [Page 3] Internet-Draft ELP8 Container Format November 2026 Anchor Hash); 0x02 = SHA-512 (64-byte Anchor Hash). Original Size (8 bytes, offset 0x08): Unsigned 64-bit integer specifying exact uncompressed byte length. Payload Length (8 bytes, offset 0x10): Unsigned 64-bit integer specifying exact byte length of the Compressed Payload. 4. Hash-Anchored Alignment and Multi-Chunk Gear Framing Prior to geometric encoding, the encoder computes the Anchor Hash H_0 over the uncompressed input stream and derives the root wheel sector: S_0 = uint64(H_0[0..7]) mod M. When Flag Bit 2 (0x04) is set, the Compressed Payload begins with a 32-bit unsigned integer num_chunks, followed by num_chunks sequential frames. Each frame starts with a 9-byte header: [Gear ID (1 byte)][Chunk Original Size (uint32)][Chunk Compressed Size (uint32)]. For chunk index i (0-based), the local phase anchor is S_i = (S_0 + i) mod M: * *Gear 0x00 (G0 - Raw Store):* Uncompressed chunk bytes (prevents expansion on high-entropy data). * *Gear 0x01 (G1 - Deflate):* RFC 1951 compressed chunk bytes. * *Gear 0x06 (G6 - Wheel-8 Inward-Mirror Spiral):* Modular phase-XOR and delta residual stream anchored at S_i, followed by RFC 1951 compression. During decoding, the decoder MUST reconstruct all chunks, verify that total decoded bytes equal Original Size, recompute H_1 over the reconstructed stream, and verify H_1 == H_0 in constant time before releasing output bytes. 5. Full-Lifecycle Security Considerations 1. *Bounded Decompression (Decompression Bomb Defense):* Each chunk MUST NOT exceed 64 MiB (67,108,864 bytes). Decoders MUST enforce bounded streaming decompression and abort immediately if decompressed output exceeds Chunk Original Size. 2. *Source-Side TOCTOU and Symlink Defense:* Encoders SHOULD open input files with symlink traversal disabled (e.g., O_NOFOLLOW) and MUST verify via a second-pass digest that the source stream was not altered during encoding. Heilos Expires 29 May 2027 [Page 4] Internet-Draft ELP8 Container Format November 2026 3. *Atomic Quarantine and Overwrite Protection:* Decoders MUST write reconstructed data to an isolated temporary quarantine file and promote it via atomic rename only after Anchor Hash (and optional Bit 3 origin tag) verification succeeds. Implementations MUST NOT overwrite existing target files unless explicitly authorized by the operator, and MUST reject identical source and destination paths. 6. IANA Considerations This document requests registration of the media type application/ elp8 in the IANA "Media Types" registry: * Type name: application * Subtype name: elp8 * Required parameters: N/A * Optional parameters: N/A * Encoding considerations: binary * Security considerations: See Section 5 of this document. * Interoperability considerations: Big-endian network byte order for all header fields. * Published specification: This document. * Applications that use this media type: EULNO compression tools and archival utilities. * Magic number(s): 0x45 0x4C 0x50 38 ("ELP8") at byte offset 0. * File extension(s): .elp8 * Person & email address to contact for further information: Robin Heilos * Intended usage: COMMON * Change controller: Robin Heilos 7. Normative References Heilos Expires 29 May 2027 [Page 5] Internet-Draft ELP8 Container Format November 2026 [RFC1951] Deutsch, P., "DEFLATE Compressed Data Format Specification version 1.3", RFC 1951, May 1996, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, May 2017, . Author's Address Robin Heilos EULNO Project Germany Email: mccalm@outlook.de URI: https://eulno.org Heilos Expires 29 May 2027 [Page 6]