Sealing with a One-Time Pad: A Byte-Exact Specification and Test Vectors for Builders
Our published constructions seal a message by XOR with a one-time pad and authenticate it with a one-time Wegman-Carter MAC. They fix the shape of the seal but not all of its bytes. Two implementations that agree on the shape can still disagree on every byte. Where two of those papers do fix the MAC key's place, they put it just after the message, and that choice turned out to matter. If the MAC key is read from just after the message, and the receiver learns the message length from the wire, then someone who knows a message's text can cut it short and forge a valid seal. We specify the seal we use, byte by byte, with the MAC key first. Key-first is not the whole fix: if the receiver also takes the key's position from the wire, that position must come from authenticated local state, lie where no byte ever encrypts, or be bound into a tag value forgers cannot compute. We generated 187 known-answer vectors from the text of this specification, not from any implementation, and print four of them here: 25 that must seal and open exactly, 158 that must be refused, and 4 that must not seal. On 2026-11-09 two of our implementations, in Java and Rust, passed all 187, and a third, in Python, matched all 25 sealing cases in both directions. Five deliberately broken copies each failed between 48 and 106 of the 212 checks. No one outside our organisation has checked any of this yet.
Authors
- AriaLabs Systems LLC
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.5281/zenodo.24638344
- Primary Topic
- Cryptographic Implementations and Security
- Type
- preprint