有限环密码系统中的规范字节字符串编码
Canonical Byte-String Encoding for Finite-Ring Cryptosystems
AI总结:
本文提出了一种规范的字节到余数映射层,用于有限环密码系统中的代数加密步骤,通过基于rANS的系统实现,并提供形式化验证和性能基准。
摘要:
环映射协议需要在任何代数加密步骤开始前有一个规范的字节到余数层。本文隔离了这一层,并提出了base-m长度编码器,将长度小于2^64的字节字符串映射到模m的余数列表。编码器基于并改进了Duda提出的rANS系统。解码对于满足本文参数范围的所有模数都是精确的。由于编码在其固定宽度的头部中携带字节长度,解码也对附加的有效后缀数字具有容忍性。本文附带了描述协议的Rust实现,以及带有机器验证证明的Lean 4形式化验证,并提供了性能基准。Lean 4形式化验证确立了固定宽度前缀反转和载荷-状态界限低于2^64,流级往返正确性,以及每个发出的符号都是模m的有效余数。我们最后进行了复杂度分析,并讨论了在实际应用中出现的实用考虑。
英文摘要:
Ring-mapping protocols need a canonical byte-to-residue layer before any algebraic encryption step can begin. This paper isolates that layer and presents the base-m length codec, a canonical map from byte strings of length less than 2^64 to lists of residues modulo m. The encoder builds on and adapts an rANS-based system proposed by Duda. Decoding is exact for all moduli satisfying the paper's parameter bounds. Because the encoding carries the byte length in its fixed-width header, decoding is also tolerant to appended valid suffix digits. The paper is accompanied by a Rust implementation of the described protocol, a Lean 4 formalization of the abstract codec with machine-checked proofs, and performance benchmarks. The Lean 4 formalization establishes fixed-width prefix inversion and payload-state bounds below 2^64, stream-level roundtrip correctness, and that every emitted symbol is a valid residue modulo m. We conclude with a complexity analysis and a discussion of practical considerations arising in real-world use of the codec.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。