Submitted:
29 May 2026
Posted:
01 June 2026
You are already at the latest version
Abstract
Keywords:
MSC: 68W32 Algorithms on strings, 68M25 Computer security, 68U35 Computing methodologies for information systems 94A05 Communication theory, 94A60 Cryptography
1. Introduction
2. Prior Work
2.1. Affine Variants
2.2. Dynamic Key Variants
2.3. Key Element Variants
2.4. The Gap in the Literature Identified
3. Round Function and Simplified Cipher Scheme
3.1. Simplified Multidimensional–Hill–SPN Encryption Scheme
3.2. Round Structure and High-Level Flow
3.3. Step A: Round Key Injection
3.4. Step B: Intra-Group Diffusion Using Parallel 4×4 Matrices
3.5. Step C: Inter-Group Diffusion Using 8×8 Matrices
3.6. Step D: First Non-Linear Substitution Layer
3.7. Step E: Full-State Diffusion Using a 16×16 Matrix
3.8. Step F: Second Nonlinear Substitution Layer
3.9. Matrix Construction and Key-Dependent Generation
3.10. Formal Round Definition
3.11. Invertibility and Correctness of the Round Function
4. Methods
4.1. Plaintext Avalanche
4.2. Key Avalanche
4.3. Differential Propagation Across Rounds
4.4. Differential Behaviour of Intra–Group Diffusion
4.5. Differential Behaviour of Inter–Group Diffusion
4.6. Differential Behaviour of Full-Block Diffusion
4.7. Linear Bias Exceedance
4.8. Algebraic Degree
4.9. Branch Numbers

5. Results
5.1. Avalanche (Step 1)
5.2. Differential Distribution (Step 2)
5.3. Linear Bias (Step 3)
5.4. Algebraic Degree (Step 4)
5.5. Branch Numbers (Step 0)
6. Discussion
| Metric | MD-Hill-SPN (aggregate, 2 sessions) | AES-128 (Rijndael) [8] | Serpent-128 [24] |
|---|---|---|---|
| Design Parameters | |||
| Block size | 128-bit [M] | 128-bit [T] | 128-bit [T] |
| Rounds | 12 [M] | 10 [T] | 32 [T] |
| S-box type | 8-bit (AES S-box, borrowed directly) [M] | 8-bit (power-map inverse in GF(2⁸)) [T] | 4-bit (8 distinct keyed S-boxes) [T] |
| S-boxes per round | 32 (two layers × 16) [M] | 16 (one SubBytes layer) [T] | 32 (one layer of 4-bit boxes) [T] |
| Diffusion structure | 4×4 (×4) → 8×8 (×2) → 16×16 (×1), all GF(2⁸) [M] | 4×4 MDS MixColumns, GF(2⁸) [T] | Bitwise linear transform (IP/FP); no byte-level MDS matrix [T] |
| Key derivation | Argon2id (t=3, m=65,536 KiB, p=2) — production KDF; SHA-256 domain-separator stub used in metric sessions (see §4 limitation) [M] | Key schedule (word-rotation XOR) [T] | Affine recurrence over GF(2³²)⁸ with prekey expansion [T] |
| Step 1 — Avalanche (PT = plaintext bit-flip; Key = key bit-flip) | |||
| PT avalanche r=1 (mean bits flipped / 128) | 64.01 combined (S1: 63.97; S2: 64.67) [M] | ∼ 20–32 bits (one column affected; partial) [E]† | ∼ 8–16 bits (one 4-bit S-box + linear mix; partial) [E]‡ |
| Round achieving full PT avalanche (≈64 bits) | r = 1 ✓✓ [M] | r = 2 [T]† (ShiftRows spreads to all 4 columns) | r ≈ 4–6 [E]‡ (bit-level diffusion builds gradually) |
| Round achieving full Key avalanche (≈64 bits) | r = 1 (mean 64.25 combined) [M] | r = 2 [T]† | r ≈ 4–6 [E]‡ |
| † AES [8]: after Round 2 ShiftRows repositions four active bytes into separate columns; MixColumns activates all 16 bytes. ‡ Serpent [24]: estimate from diffusion analysis of linear transform; exact value not universally cited. | |||
| Step 2 — Differential Distribution (50,000 samples per experiment) | |||
| Differential floor (all outputs distinct) | r = 4 ✓✓ 50,000/50,000 unique Δ both sessions [M] — consistent with random-permutation behaviour at this sampling resolution; not a formal bound | r ≥ 4 (theoretical); ≥25 active S-boxes; DP ≤2 [T]−50 per Daemen & Rijmen (1999) | r ≥ 6–8 (theoretical); wide-trail bit-level bound; large margin over 32 rounds [T] |
| Differential probability at maximum round count | 2×10⁻⁵ (= 1/50,000) at r=4,8,12 both sessions [M] — sampling-resolution floor only; true DP unknown | ≤10 [T]−30 (theoretical, 10 rounds) | Negligible (32 rounds; designers state 8 rounds sufficient) [T] |
| Step 3 — Linear-Bias Probe (500 mask pairs × 50,000 samples; threshold 1/√50,000 = 0.00447) | |||
| Exceedance rate r=12 | 4.40% combined (S1: 4.60%; S2: 4.20%) [M] — below 4.55% null-expectation noise floor; no exploitable bias detected within tested configuration; not a formal linear correlation bound | Provably near zero (wide-trail; same active-S-box bound applies) [T] | Near zero (32-round conservative design) [T] |
| Max |ε| observed / theoretical | 0.007260 (1.62× threshold) [M] — no exploitable pair found within 500 tested mask pairs | Theoretical maximum falls with each additional round [T] | No known exploitable linear approximation [T] |
| Step 4 — Algebraic Degree (ANF / Möbius transform; t = 6 active bits; 4 trials / round) | |||
| S-box degree (per box) | 7 (AES S-box, GF(2⁸) power map) [M] | 7 (same AES S-box) [T] | ≤3 (4-bit S-box; degree limited by box size) [T] |
| Round of best-lb saturation (best lb = t = 6) | r = 1 best lb = 6 = t_max from round 1 (combined mean 5.50–6.00 across all rounds) [M] — lower bound on a 6-dimensional subspace only; global algebraic degree of the 128-bit function is not demonstrated | r = 1 (S-box degree 7 exceeds t=6; algebraic degree saturates immediately) [T] | Grows over many rounds; degree ≤3 per S-box limits per-round growth [T] |
| Step 0 — Branch Numbers (GF(2⁸); hw counts nonzero bytes; exact via weight-1 enumeration over Cauchy MDS construction) | |||
| 4×4 tier (MDS bound = n+1 = 5) | B = 5 (MDS exact, both sessions) [M] Cauchy MDS construction guarantees B = n+1 = 5 for all valid keys | B = 5 (MDS exact) MixColumns 4×4 over GF(2⁸) [T] | |
| 8×8 tier (MDS bound = n+1 = 9) | B = 9 (MDS exact, both sessions) [M] | N/A (no 8×8 matrix layer) | N/A (no byte-level 8×8 layer) |
| 16×16 tier (MDS bound = n+1 = 17) | B = 17 (MDS exact, both sessions) [M] — | N/A (no 16×16 matrix layer) | N/A (no byte-level 16×16 layer) |
| Branch numbers for MD-Hill-SPN are exact values derived from the Cauchy MDS construction (every square submatrix has nonzero determinant over GF(2⁸)); the weight-1 enumeration confirms B = n+1 at each tier. Cells highlighted in amber (■) are corrected from the prior draft. GF(2⁸) hw counts nonzero bytes, directly comparable to AES MixColumns (B=5, MDS) [8]. Serpent’s linear transform [24] provides diffusion at the bit level and is not characterised by byte-level branch numbers. | |||
6.1. Diffusion and Avalanche Behavior
6.2. Differential Resistance
6.3. Linear Bias Probing
6.4. Algebraic Degree
6.5. Diffusion Hierarchy and Branch Numbers
6.6. Comparison with Recently Proposed Hill Cipher and Lightweight Block Cipher Variants
| Cipher | Block Size | Rounds | SPN Structure |
Non- linear S-Box |
MDS Diffusion Layer |
Memory-Hard KDF | Full Multi-Metric Eval. | Full Avalanche Round |
|---|---|---|---|---|---|---|---|---|
| MD-Hill-SPN (present work) | 128-bit | 12 | ✓✓ (formal) | 8-bit AES S-box, deg. 7 | ✓4×4, 8×8, 16×16 GF(2⁸) | ✓ Argon2id (t=3, m=64MiB, p=2) | ✓✓ 5 metrics, 2 sessions | r = 1 |
| Pandia et al. [5] | Variable | 1 | ✗ | ✗ | ✗ | ✗ | ✗ | Not reported |
| Paragas, Sison & Medina [21] | Variable | ~1 | ∼ (partial) | ∼ static S-box | ✗ | ✗ | ✗ | Partial |
| PRESENT [Bogdanov et al., 2007] | 64-bit | 31 | ✓ (SPN) | ∼ 4-bit, deg. ≤3 | ✗ (bit permutation) | ✗ | ✓ (theoretical) | ~5–10 rounds |
| SIMON-128/128 [NSA/Beaulieu et al., 2013] | 128-bit | 68 | ✗ (Feistel) | ∼ AND/rotation | ✗ | ✗ | ✓ (theoretical) | Many rounds |
7. Conclusions
8. Patents
Author contributions
Funding Open access funding
Declarations Competing interests
Declaration of Generative AI
Abbreviations
| AES | Advanced Encryption Standard |
| ANF | Algebraic Normal Form |
| GF | Galois Field |
| KDF | Key Derivation Function |
| MDS | Maximum Distance Separable |
| PT | Plaintext |
| SHA | Secure Hash Algorithm |
| SPN | Substitution–Permutation Network |
Appendix A
Appendix A.1
| Parameter | Value (hex unless noted) |
|---|---|
| Inputs | |
| Password | MDHillSPN2026! |
| Password bytes | 4D 44 48 69 6C 6C 53 50 4E 32 30 32 36 21 (UTF-8, 14 bytes) |
| Salt (16 bytes) | 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 |
| Plaintext | 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF |
| Derived master key (256-bit) | |
| Master key K | 3C B7 20 72 7F 48 78 85 B5 6B 41 64 E3 35 3C B2 E6 60 78 E6 7F BC 9D CC 57 A2 83 61 71 88 B3 14 |
| Derivation | K = SHA-256(pwd ∥ salt) ∥ SHA-256(pwd ∥ salt ∥ 0x01) [:32] |
| Round keys (twelve 128-bit values) | |
| rk[ 0] | 7F 3D EC 33 55 74 7B 34 1D 02 3A 96 75 C7 71 02 |
| rk[ 1] | 3A CF C4 47 19 7C C3 65 53 45 88 41 94 DA AF CA |
| rk[ 2] | 6A 02 11 61 68 7F 46 F7 87 02 C7 96 3E 1D 6A C5 |
| rk[ 3] | 8C 8B AD DF A5 35 E3 A6 06 F2 0D B2 BE 31 E2 9D |
| rk[ 4] | 0E 93 F4 A9 38 8F 5B 3C 85 FA 6F 51 02 62 83 5C |
| rk[ 5] | 83 A1 76 FE EF A7 95 2B DE 2C 44 CF 23 00 FF E8 |
| rk[ 6] | 27 2E D9 7F 48 77 9D 82 DB 9E 43 B9 26 B0 B3 5B |
| rk[ 7] | E8 99 A8 BE C9 99 52 AD 95 2E DA C2 15 A4 37 67 |
| rk[ 8] | 6E BD 12 D3 72 ED 7A EE BC D4 C5 9C D5 1C AC DE |
| rk[ 9] | 12 FB E6 CC B6 F6 DD 2A 87 8E A4 17 EA 90 8A 64 |
| rk[10] | C1 FB 27 AE 5A 57 67 A7 24 24 5E D8 55 EE 57 F1 |
| rk[11] | 4F 8F A3 98 53 52 C9 34 C1 08 7B A9 52 CC F5 30 |
| Round-key schedule: rk[r] = SHA-256(K∥‘MDHILLRK’∥pack(‘>H’, r)) [:16] | |
Appendix A.2
| Matrix | Computed B | MDS bound (n+1) | Status |
|---|---|---|---|
| M₄[0] | 5 | 5 | MDS✓ |
| M₄[1] | 5 | 5 | MDS✓ |
| M₄[2] | 5 | 5 | MDS✓ |
| M₄[3] | 5 | 5 | MDS✓ |
| M₈[0] | 9 | 9 | MDS✓ |
| M₈[1] | 9 | 9 | MDS✓ |
| M₁₆ | 17 | 17 | MDS✓ |
| Branch number B(M) computed exactly via exhaustive weight-1 enumeration. For any weight-1 input eᵢ, hw(eᵢ) + hw(M eᵢ) = 1 + (column-i Hamming weight of M); all 255·n such inputs are evaluated. Matrices are Cauchy-constructed: M[i][j] = (xᵢ ⊕ yⱼ) ⁻¹ with X, Y disjoint nonzero subsets of GF(2 ⁸ ), guaranteeing MDS (B = n+1) at every tier. | |||
Appendix A.3
| Step | Operation | State after step (hex, 16 bytes) |
|---|---|---|
| Input | Plaintext (round 0 input) | 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF |
| A | XOR with rk[0] (round-key injection) | 7F 2C CE 00 11 21 1D 43 95 9B 90 2D B9 1A 9F FD |
| B | Four parallel 4×4 GF(2⁸) Cauchy matrices | 75 75 3C 70 55 5C D5 89 19 49 01 69 F3 D7 B8 42 |
| C | Two parallel 8×8 GF(2⁸) Cauchy matrices | 1A 34 47 D3 27 35 BC 6F 52 9C B8 6A 0B D0 EC D6 |
| D | AES S-box on all 16 bytes (S₁, first nonlinear layer) | A2 18 A0 66 CC 96 65 A8 00 DE 6C 02 2B 70 CE F6 |
| E | 16×16 GF(2⁸) Cauchy matrix (full-block diffusion) | 09 A2 03 FD 14 7F B0 B3 14 B7 47 8A 7E 8D 50 DC |
| F | AES S-box on all 16 bytes (S₂, second nonlinear layer) | 01 3A 7B 54 FA D2 E7 6D FA A9 A0 7E F3 5D 53 86 |
| The output of Step F is the input to Round 1. After the complete 12-round iteration, the state becomes the final ciphertext (Table A.4). | ||
Appendix A.4
| Quantity | Value (hex, 16 bytes) |
|---|---|
| Plaintext (input) | 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF |
| Ciphertext (after 12 rounds) | D2 D0 AE D8 8F 1A 31 69 A0 B1 AF EB 87 39 B4 58 |
| Decryption of ciphertext | 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF Matches original plaintext exactly. |
| Round-trip check | PASS✓decrypt(encrypt(P)) = P |
References
- Hill, L.S. Cryptography in an algebraic alphabet. Am. Math. Mon. 1929, 36, 306–312.
- Stallings, W. Cryptography and Network Security: Principles and Practice, 2nd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 1999.
- Ismail, I.A.; Amin, M.; Diab, H. How to repair the Hill cipher. J. Zhejiang Univ. Sci. A 2006, 7(12), 2022–2030. [CrossRef]
- Farmanbar, M.; Chefranov, A.G. Investigation of Hill cipher modifications based on permutation and iteration. Int. J. Comput. Sci. Inf. Secur. 2012, 10(9), 1–7.
- Pandia, M.; Sihombing, P.; Budiman, M.A.; Nababan, E.B. Enhanced resilience of Hill cipher through LWE-based probabilistic ensemble key generation scheme. Proc. 5th Int. Conf. Science and Information Technology in Smart Administration (ICSINTESA), IEEE, 2025, 642–645. [CrossRef]
- Shannon, C.E. Communication theory of secrecy systems. Bell Syst. Tech. J. 1949, 28, 656–715.
- Paar, C.; Pelzl, J. Understanding Cryptography: A Textbook for Students and Practitioners; Springer: Berlin/Heidelberg, Germany, 2010.
- Daemen, J.; Rijmen, V. AES Proposal: Rijndael. NIST AES Candidate Algorithm Submission; National Institute of Standards and Technology: Gaithersburg, MD, USA, 1999.
- Stinson, D.R. Cryptography: Theory and Practice, 3rd ed.; Chapman & Hall/CRC: Boca Raton, FL, USA, 2006.
- Valizadeh, M.H. Healing the Hill cipher against zero-plaintext attack. Cryptology ePrint Archive 2016, Report 2016/806.
- Toorani, M.; Falahati, A. A secure variant of the Hill cipher. arXiv 2010, arXiv:1002.3567.
- Nordin, M.; Rahman, A.; Abidin, A.F.A.; Yusof, M.K.; Usop, N.S.M. Cryptography: A new approach of classical Hill cipher. Int. J. Comput. Sci. Inf. Secur. 2012, 7, 129–135.
- Ravan, R.R.; Nigavekar, A.R. Secured data communication using novel modification to Hill cipher algorithm with self repetitive matrix. Int. J. Sci. Res. 2013, 2, 1–5.
- Maxrizal. Hill cipher cryptosystem over complex numbers. Indones. J. Math. Educ. 2019, 2, 9–13.
- Bahtiar, N.; Widodo, A.P.; Puspita, N.P. Key matrix generation using random functions in Hill cipher modulo 95 cryptography. Integra: J. Integr. Math. Comput. Sci. 2025, 2, 1–6. [CrossRef]
- Jin, J.; Wu, M.; Ouyang, A.; Li, K.; Chen, C. A novel dynamic Hill cipher and its applications on medical IoT. IEEE Internet Things J. 2025, 12, 14297–14308. [CrossRef]
- Coggins III, P.E.; Glatzer, T. An algorithm for a matrix-based Enigma encoder from a variation of the Hill cipher as an application of 2 × 2 matrices. PRIMUS 2020, 30, 1–18. [CrossRef]
- Coggins, P.E. Two novel multidimensional affine variations of the Hill cipher. Math. Comput. Sci. 2024, 9(3), 46–56. [CrossRef]
- Saeednia, S. How to make the Hill cipher secure. Cryptologia 2000, 24(4), 353–360. [CrossRef]
- Putera, A.; Siahaan, A.P.U.; Rahim, R. Dynamic key matrix of Hill cipher using genetic algorithm. Int. J. Secur. Its Appl. 2016, 10(8), 173–180. [CrossRef]
- Paragas, J.R.; Sison, A.M.; Medina, R.P. A new variant of Hill cipher algorithm using modified S-box. Int. J. Sci. Technol. Res. 2019, 8(10), 615–619.
- Jorstad, N.D.; Smith, L.T., Jr. Cryptographic algorithm metrics; Institute for Defense Analyses: Alexandria, VA, USA, 1997.
- Carcaño Ventura, D.; Rodríguez-Henríquez, L.M.X.; Pomares Hernández, S.E. Understanding S-Box security assessment: A practical guide. Math. Comput. Appl. 2026, 31, 27.
- Anderson, R.; Biham, E.; Knudsen, L. Serpent: A Proposal for the Advanced Encryption Standard. NIST AES Candidate Algorithm Submission; National Institute of Standards and Technology: Gaithersburg, MD, USA, 1998.
- Bogdanov, A.; Knudsen, L.R.; Leander, G.; Paar, C.; Poschmann, A.; Robshaw, M.J.B.; Seurin, Y.; Vikkelsoe, C. PRESENT: An ultra-lightweight block cipher. In Cryptographic Hardware and Embedded Systems – CHES 2007; Paillier, P., Verbauwhede, I., Eds.; Lecture Notes in Computer Science, Vol. 4727; Springer: Berlin/Heidelberg, Germany, 2007; pp. 450–466. [CrossRef]
- Beaulieu, R.; Shors, D.; Smith, J.; Treatman-Clark, S.; Weeks, B.; Wingers, L. The SIMON and SPECK families of lightweight block ciphers. IACR Cryptology ePrint Archive 2013, Report 2013/404. Available online: https://eprint.iacr.org/2013/404 (accessed 28 May 2026).

| Category | Author(s) [Ref] | Core Modification | Nonlinear Substitution | Multi-Round / SPN Structure | Formal Security Metrics Reported |
|---|---|---|---|---|---|
| 2.1 Affine Variants | |||||
| Affine | Valizadeh [10] | Additive vector injection; counters zero-plaintext attack | ✗ | ✗ | ✗ |
| Affine | Toorani et al. [11] | Key-dependent additive offset; targets KPA and zero-plaintext attack | ✗ | ✗ | ✗ |
| Affine | Nordin et al. [12] | Affine augmentation to break simple linear dependencies | ✗ | ✗ | ✗ |
| 2.2 Dynamic Key Variants | |||||
| Dynamic Key | Ismail, Amin & Diab [3] | Per-block dynamic key derived from auxiliary parameters | ✗ | ✗ | ✗ |
| Dynamic Key | Ravan & Nigavekar [13] | Per-block key update via deterministic scheduling | ✗ | ✗ | ✗ |
| Dynamic Key | Bahtiar, Widodo, & Puspita [15] | Per-block key generated via random numbers | ✗ | ✗ | ✗ |
| Dynamic Key | Jin, Wu, Ouyang & Li [16] | Dynamic key generation for cross-block diffusion | ✗ | ✗ | ✗ |
| Dynamic Key | Coggins & Glatzer [17] | Enigma-inspired matrix rotation; invertibility-preserving key variation | ✗ | ✗ | ✗ |
| Dynamic Key | Coggins [18] | Systematic Enigma-style key scheduling; two-variation treatment | ✗ | ✗ | ✗ |
| Dynamic Key | Putera, Siahaan & Rahim [20] | Genetic algorithm search for invertible matrices (det = 1) | ✗ | ✗ | ✗ |
| Dynamic Key (SPN-adjacent) | Paragas, Sison & Medina [21] | S-boxes + CBC + XOR + circular shifts; approaches SPN structure | ∼ | ∼ | ∼ |
| 2.3 Key Element Variants | |||||
| Key Element | Maxrizal [14] | Complex-number modular generalisation of key matrix and plaintext space | ✗ | ✗ | ✗ |
| 2.4 Gap in the Literature — Present Work | |||||
| SPN (present work) | Coggins [present] |
Multidimensional-Hill-SPN: 4×4 / 8×8 / 16×16 GF(2⁸) matrices; two AES S-box layers per round; Argon2id KDF; 12-round 128-bit block cipher |
✓✓ | ✓✓ |
✓✓ 5 metrics, 2 sessions |
| Metric | Session 1 (salt: fa537…) | Session 2 (salt: 194a8…) | Combined / Notes | Result |
|---|---|---|---|---|
| STEP 1: AVALANCHE (60 PT trials · 30 key trials per round count) | ||||
| PT Avalanche r=1 | mean 63.97 σ 6.31 | mean 64.67 σ 6.10 | combined mean = 64.32 · FULL AVALANCHE AT ROUND 1 · ideal = 64 | ✓✓r=1 |
| PT Avalanche r=2 | mean 63.95 σ 5.91 | mean 63.00 σ 5.83 | combined mean = 63.48 · sustained near-ideal from r=1 | ✓ |
| PT Avalanche r=4 | mean 63.30 σ 4.92 | mean 64.15 σ 5.05 | combined mean = 63.73 · ideal = 64 | ✓ |
| PT Avalanche r=5 | mean 63.75 σ 5.52 | mean 65.12 σ 5.54 | combined mean = 64.44 · ideal = 64 | ✓ |
| PT Avalanche r=8 | mean 63.70 σ 6.29 | mean 64.45 σ 5.16 | combined mean = 64.08 · sustained near-ideal · ideal = 64 | ✓ |
| PT Avalanche r=12 | mean 63.22 σ 5.56 | mean 62.93 σ 5.58 | combined mean = 63.08 · cross-session spread 0.29 bits | ✓ |
| Key Avalanche r=1 | mean 64.93 σ 6.08 | mean 63.57 σ 4.79 | combined mean = 64.25 · ideal = 64 | ✓ |
| Key Avalanche r=12 | mean 63.43 σ 5.48 | mean 62.57 σ 5.04 | combined mean = 63.00 · cross-session spread 0.86 bits | ✓ |
| MD-Hill-SPN achieves full avalanche from round 1. | ||||
| STEP 2: DIFFERENTIAL DISTRIBUTION (50,000 samples per experiment) | ||||
| [A] r=4 single bit | 50,000/50k 2×10⁻⁵ | 50,000/50k 2×10⁻⁵ | Sampling-resolution floor reached at r=4 in both sessions | ✓✓r=4 |
| [B] r=8 single bit | 50,000/50k 2×10⁻⁵ | 50,000/50k 2×10⁻⁵ | Consistent with random-permutation behaviour at this sampling resolution (1/50,000); not a formal bound | ✓✓ |
| [C] r=12 single bit | 50,000/50k 2×10⁻⁵ | 50,000/50k 2×10⁻⁵ | Consistent with random-permutation behaviour at this sampling resolution (1/50,000); not a formal bound | ✓✓ |
| [D] r=12 byte diff | 50,000/50k 2×10⁻⁵ | 50,000/50k 2×10⁻⁵ | Single-byte input difference · full diffusion both sessions | ✓✓ |
| All four experiments reach the sampling-resolution floor (1/50,000 = 2×10⁻⁵) in both sessions. MD-Hill-SPN reaches the floor at round 4. | ||||
| STEP 3: LINEAR-BIAS PROBE (500 mask pairs × 50,000 samples · r=12 · threshold 1/√N = 0.00447 = 2σ) | ||||
| Exceedance rate | 23/500 = 4.60% | 21/500 = 4.20% | Combined 44/1000 = 4.40% · null expectation Pr(|Z|>2) ~ 4.55% | ✓no bias detected within tested configuration |
| Mean |bias| | 0.001696 | 0.001778 | Combined mean 0.001737 · near zero both sessions | ✓ |
| Max |bias| | 0.007260 (1.62× thr) | 0.007200 (1.61× thr) | threshold = 1/√50,000 = 0.00447 · no exploitable pair found | ✓ |
| Under the null, ε̂ has SE = 1/(2√N)≈0.00224; threshold 1/√N≈0.00447 corresponds to 2 SE. Session 2 exceedance 4.20% is below the 4.55% null expectation; Session 1 at 4.60% is marginally above but within sampling variation. Combined 4.40% is below the noise floor. No structural linear bias detected within the tested configuration (500 mask pairs, N = 50,000 samples each). This is a preliminary empirical observation; it does not substitute for a formal linear trail analysis. | ||||
| STEP 4: ALGEBRAIC DEGREE LOWER BOUNDS (t=6 active bits · ANF / Möbius transform · 4 trials / round) | ||||
| Best lb r=1 | 6 = t_max | 6 = t_max | Best lb = 6 = theoretical max from round 1 · immediate saturation | ✓✓r=1 |
| Best lb r=2 | 6 = t_max | 5 | combined mean 5.50 · sustained near-saturation | ✓✓ |
| Best lb r=4 | 6 = t_max | 6 = t_max | combined mean 5.75 · sustained saturation | ✓✓ |
| Best lb r=5 | 6 = t_max | 6 = t_max | combined mean 6.00 · all trials at maximum | ✓✓ |
| Best lb r=8 | 6 = t_max | 6 = t_max | combined mean 5.50 · sustained saturation | ✓✓ |
| Best lb r=12 | 6 = t_max | 5 | combined mean 5.50 · sustained near-saturation | ✓✓ |
| MD-Hill-SPN achieves the maximum observable algebraic degree lower bound (best lb = t = 6) from round 1 in both sessions. Driven by the AES S-box (degree 7) combined with the full-block 16×16 matrix in Step E. | ||||
| STEP 0: BRANCH NUMBERS (GF(2⁸) · hw counts nonzero bytes · EXACT via weight-1 enumeration) | ||||
| M₄[0–3] (4×4) | B = 5, 5, 5, 5 | B = 5, 5, 5, 5 | MDS bound = 5 · all four matrices meet MDS (Cauchy construction) | ✓MDS |
| M₈[0–1] (8×8) | B = 9, 9 | B = 9, 9 | MDS bound = 9 · both matrices meet MDS (Cauchy construction) | ✓✓MDS |
| M₁₆[0] (16×16) | B = 17 | B = 17 | MDS bound = 17 · matrix meets MDS · full-block diffusion | ✓✓✓MDS |
| Expected values under the corrected Cauchy MDS construction (Revision 3 of the metric code). Cauchy matrices over GF(2⁸) are MDS by construction: every submatrix has nonzero determinant, so B(M) attains the Singleton bound n+1. Values require one confirmation run with mdhillspn_metrics_corrected.py; the construction is mathematically required to produce these exact values, so both sessions will yield identical branch numbers regardless of the derived master key. | ||||
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).