arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.19852cs.ITcs.CRmath.IT
收藏

IEEE-754有效性约束下STL文件的全局与局部熵测试

Global and Local Entropy Tests for STL Files Under IEEE-754 Validity Constraints

Konstantin Preslavsky University of Shumen(舒门康斯坦丁·普雷斯拉夫斯基大学)

Tonislav Troev, Borislav Stoyanov

AI总结:

该研究针对IEEE-754有效性约束下的STL文件,推导了有效STL分布下熵的精确均值与方差,调整了全局和局部熵参考值,建立了对应的假设检验,可避免未调整熵测试错误拒绝理想VSTL密文。

摘要:

香农熵是衡量密文随机性的标准指标,可通过对整个密文的字节直方图进行全局评估,或作为固定大小非重叠块的平均值进行局部评估。全局统计量仅捕获整体字节分布,而局部统计量还对仅存在于密文部分的非随机性敏感。通常会基于独立均匀字节假设推导参考值来评估这两种指标。然而,STL将大部分数值数据编码为单精度IEEE-754浮点数,且格式有效性要求这些浮点数为有限值,这导致字节概率非均匀,且每个指数对的两个字节之间存在依赖关系。我们推导了有效STL(VSTL)分布下熵的精确均值和方差,该分布为每个可接受的三角形记录序列分配相等概率,并提供二阶展开式,使全局参考值在大文件尺寸下仍可实用计算。利用这些展开式,我们建立了全局熵统计量的双侧假设检验,其极限值从8位降至7.99991479609位。格式约束也改变了局部熵参考:对三角形记录应用容量能量准则,选择的块大小为1950字节而非1936字节,精确参考均值为7.903106732975位,而非7.902469316647位。尽管这些偏移量很小,但足以使VSTL参考均值在实用文件尺寸下超出常规95%接受区间,导致未调整的熵测试容易错误拒绝理想VSTL密文。蒙特卡洛模拟在采样误差范围内证实了所有参考值。因此,我们建议使用此处推导的特定格式参考值来评估STL密码。

英文摘要:

Shannon entropy is a standard measure of ciphertext randomness, evaluated either globally over the byte histogram of the entire ciphertext or locally as the average over non-overlapping blocks of ?xed size. While the global statistic captures only the overall byte distribution, the local statistic is also sensitive to non-randomness that is con?ned to parts of the ciphertext. Both measures are commonly assessed against reference values derived under the assumption of independent uniform bytes. However, STL encodes most numerical data as single-precision IEEE-754 ?oats, and format validity requires them to be ?nite, causing nonuniform byte probabilities and dependence between the two bytes of each exponent pair. We derive the exact mean and variance of entropy under the valid-STL (VSTL) distribution, which assigns equal probability to every admissible sequence of triangle records, and provide second-order expansions that keep the global reference values practical to compute at large ?le sizes. Using these expansions, we establish a two-sided hypothesis test for the global entropy statistic, whose limiting value is lowered from 8 to 7.99991479609 bits. The format constraints also change the local entropy reference: applying the capacity energy criterion to triangle records selects a block size of 1950 bytes instead of 1936 bytes, with an exact reference mean of 7.903106732975 rather than 7.902469316647 bits. Although small, these shifts are su?cient to place the VSTL reference means outside the conventional 95% acceptance intervals at practical ?le sizes, making unadjusted entropy tests prone to falsely rejecting ideal VSTL ciphertexts. Monte-Carlo simulations con?rm all reference values within sampling error. We therefore recommend using the format-speci?c reference values derived here to evaluate STL ciphers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑