Preprint
Article

This version is not peer-reviewed.

Leakage Assessment and Correlation Power Analysis of the MAYO Secret Linear Map on a Cortex-M4: A Reproducible Case Study and a Validated First-Order Countermeasure

Submitted:

14 August 2026

Posted:

17 August 2026

You are already at the latest version

Abstract
This work presents a complete power side-channel evaluation of the MAYO secret linear map on a constrained embedded target, together with a first-order countermeasure evaluated on the same hardware. While MAYO ranks among the most embedded-friendly candidates in the National Institute of Standards and Technology (NIST) additional signatures call, its defensive counterpart remains underdeveloped, as few countermeasures are quantified against an explicit leakage threshold. A two-fold study is realized, where the unprotected map O·xi over GF(16) is evaluated against a masked and row-shuffled variant under an identical acquisition procedure. Test Vector Leakage Assessment (TVLA) of the unprotected map peaks at |t|=53.7 fixed-versus-random and at |t|=195.7 under a secret-dependent fixed-versus-fixed test, while a non-profiled Correlation Power Analysis (CPA) resolving the multiplicative-identity alias and temporal row-mixing recovers 5 of 8 first-row nibbles, thus collapsing the row search space from 168 to 24 candidates. The proposed countermeasure combines masking with per-pass row shuffling, in order to suppress the micro-architectural residue that masking alone leaves. The proposed countermeasure realizes a leakage reduction approaching 54×, to |t|=3.62 with no failing point out of 24,000, at roughly 2.22× cycles. The experimental evaluations were performed in a real-world deployment on an STM32F303 (ARM Cortex-M4) measured with a ChipWhisperer-Lite.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

The convergence of post-quantum cryptographic standardisation with the deployment of security primitives on resource-constrained embedded devices has created the need for new requirements in the design and evaluation of signature schemes, in terms of resistance to physical attacks [1]. In this respect, the migration to post-quantum cryptography has entered a phase in which implementation security—and not only asymptotic hardness—is treated as a first-order selection criterion. Following the standardisation of lattice-based signatures, the National Institute of Standards and Technology (NIST) issued an additional call for general-purpose digital signatures, in order to diversify the mathematical assumptions underpinning deployed schemes [1]. Among the advancing candidates, the multivariate family—classical Unbalanced Oil and Vinegar (UOV) and its variants—is attractive for constrained devices thanks to short signatures and simple field arithmetic. The family remains well represented in the process: of the nine schemes advanced to the third round in May 2026, four (UOV, MAYO, QR-UOV and SNOVA) are UOV-based [1]. MAYO [2,3], which “whips up” a small UOV map into a larger one in order to shrink public keys, is the most embedded-friendly member of this family and has attracted dedicated hardware and micro-controller implementations [4,5].
Precisely because these schemes are candidates for deployment on smart cards, secure elements and micro-controllers, their resistance to physical attacks must be established empirically, on real silicon, rather than argued in the abstract. The signing operation of a UOV-type scheme necessarily manipulates the secret linear map that separates the oil and vinegar subspaces; any measurable dependence of power consumption on that secret constitutes a potential key-recovery vector. The community has responded with a rapidly growing body of physical attacks on MAYO, including fault injections [9,10] and single-trace side-channel analyses [11,12,13]. However, what is comparatively underdeveloped for MAYO is the defensive counterpart, i.e., countermeasures whose leakage reduction is quantified against an explicit decision threshold. The systematisation of UOV-family physical security [15] does supply first-order masked UOV and MAYO implementations for the Cortex-M4, with overhead benchmarked and a TVLA comparing protected against unprotected subroutines; masking of the Gaussian-elimination and GF ( 16 ) building blocks shared across UOV, MAYO, SNOVA and QR-UOV has otherwise been analysed at the level of probing-model cost rather than measured on-device leakage [17]. What is still missing is a MAYO countermeasure evaluated under a secret-dependent (fixed-versus-fixed) test and reported against the | t | < 4.5 gate with a stated number of failing sample points.

1.1. Contributions

This paper presents a careful, fully reproducible leakage-assessment case study of the MAYO secret linear map on a widely available evaluation platform, and uses it as the concrete foundation for an evaluated countermeasure. The presented contributions are the following:
1.
A reference-faithful reduced target. The MAYO secret operation O x i = O · x i over GF ( 16 ) is isolated exactly, reusing the MAYO-C reference GF ( 16 ) arithmetic verbatim, so that the measured leakage remains faithful to the reference while fitting the ∼48 KB SRAM of an STM32F303 on which full MAYO-1 signing does not fit (Section 5).
2.
An overwhelming leakage result. Non-specific fixed-versus-random TVLA yields a peak Welch statistic of | t | = 53.7 (threshold 4.5 ), and a more stringent fixed-versus-fixed test on two distinct secret matrices raises this to | t | = 195.7 with 12 , 298 / 20 , 000 sample points failing (corroborated by a χ 2 leakage test peaking at 975)—an unambiguous, exploitable leak of the unprotected map (Section 7).
3.
An honest CPA analysis of a linear map. Two confounds inherent to attacking a linear GF ( 16 ) operation are identified and resolved, i.e., the multiplicative-identity input-load alias and temporal row-mixing, thus enabling a partial-correlation, points-of-interest CPA that recovers 5 / 8 first-row nibbles exactly, achieving a mean true-key rank of 1.75 / 16 and collapsing the row search space from 16 8 to 24 candidates. Additionally, measured bounds on the end-to-end enumeration cost for full O recovery are reported, i.e., 2 2089 across all 78 rows and 2 1617 under per-row window calibration, against a nominal 2 2496 (Section 7 and Section 9).
4.
An evaluated first-order countermeasure. A masked and shuffled GF ( 16 ) secret map is implemented—fresh Boolean sharing of O with two independently row-shuffled share passes—and evaluated on the same STM32F303. Drift-free fixed-versus-fixed TVLA drops the peak statistic from | t | = 195.7 to | t | = 3.62 (below 4.5 , with no failing point) at a measured overhead of 2.22 × cycles, while, unlike the unprotected map, its t-statistic does not grow with trace count (Section 8). The pairing of masking with independent per-pass row shuffling is shown to be necessary rather than merely prudent on this core, which converts the study from an attack-with-roadmap into a complete attack-and-defence contribution.
5.
Reproducibility. The firmware (protected and unprotected), capture and analysis scripts, and raw traces are released as a public artifact [23], and the acquisition rigour is characterised in terms of traces-to-detection, t-versus-N curves, independent acquisitions, and the drift-free block-interleaving required in order to measure the protected implementation correctly.
The attack is deliberately framed as a non-profiled, first-order leakage-assessment and methodology contribution, rather than as a novelty-driven attack. Single-trace profiled key recovery on MAYO has already been reported [11,12,13]. By contrast, the presented study adopts the weaker and more portable non-profiled adversary, following the same methodological stance as recent non-profiled evaluations of lattice PQC [21]. Furthermore, it makes explicit the linear-map pitfalls that a profiled attack bypasses but that a first-order evaluator must confront, on top of which the countermeasure evaluation is built.
The paper is organized as follows. Section 2 provides the necessary background on MAYO and on the leakage-assessment and correlation techniques employed. Section 3 places the study within the PQ-NEXT project framework, while Section 4 reviews the closest prior attacks and countermeasures and identifies the remaining research gap. Section 5 analyses the target primitive and states the threat model, and Section 6 details the measurement setup and the distinguisher. Section 7 reports the leakage-assessment and key-recovery results for the unprotected map, whereas Section 8 presents and evaluates the proposed masked and shuffled countermeasure. Section 9 discusses the implications and limitations of the presented approach. Finally, Section 10 concludes the paper.

2. Background

2.1. MAYO and the Secret Linear Map

MAYO [2,3] is a multivariate signature scheme derived from the Oil-and-Vinegar (OV) trapdoor. In OV, the secret is a linear subspace O (the “oil” space) of dimension o inside an n-dimensional space over a finite field; a public multivariate quadratic map P vanishes on O, and signing amounts to sampling vinegar values and then solving a linear system over the oil space so that P ( s ) = t for a message digest t . MAYO reduces the OV public-key size by choosing an intentionally small oil space and then “whipping” the map k times into a larger emulated instance, recovering security while keeping keys compact.
For the NIST security level I parameter set, MAYO-1, the relevant parameters are n = 86 , m = 78 , o = 8 , k = 10 , v = n o = 78 , and field order q = 16 , giving a public key of 1420 bytes and a signature of 454 bytes from a 24-byte seed secret key. During signing, each of the k signature blocks is formed by applying the secret oil matrix O GF ( 16 ) v × o to a public vector x i GF ( 16 ) o :
O x i = O · x i , s i = v i + O x i ,
after which x i itself is copied into the signature block in the clear. The matrix O  is the UOV secret; recovering it breaks the scheme. Crucially, x i is public (it appears verbatim in the signature), so the elementary secret computation
prod = mul f O [ r ] [ j ] , x i [ j ]
multiplies one secret nibble by one known nibble in GF ( 16 ) GF ( 2 ) [ x ] / ( x 4 + x + 1 ) . Since a nibble takes only 16 values, a secret-key hypothesis for a single position has only 16 candidates. This is the textbook setting for a divide-and-conquer power-analysis attack, and it is the target of this study.

2.2. Leakage Assessment (TVLA)

Test Vector Leakage Assessment (TVLA) [6,7] is the de facto standard for detecting the presence of exploitable leakage without committing to a specific attack. In the non-specific fixed-versus-random variant, the device repeatedly processes either a single fixed input or freshly random inputs, and Welch’s two-sample t-test is applied point-wise to the two trace populations:
t = μ fixed μ rand σ fixed 2 / N fixed + σ rand 2 / N rand .
A commonly adopted decision threshold is | t | > 4.5 , corresponding to a very small false-positive probability for the null hypothesis of equal means at practical trace counts. Interleaving the fixed and random classes trace-by-trace (rather than in blocks) guards against slow environmental drift being misread as leakage. TVLA reports whether an implementation leaks, but—by design—not how much key a concrete adversary would recover; the two questions are complementary and are address both.

2.3. Correlation Power Analysis (CPA)

Correlation Power Analysis [8] recovers a secret by correlating measured power against a leakage model of a key-dependent intermediate. For each key hypothesis g and each trace with known input x, one predicts an intermediate z g = f ( g , x ) and models its leakage—classically the Hamming weight HW ( z g ) . Pearson’s correlation between the predicted leakage and the measured samples is computed over many traces; the hypothesis whose correlation peaks is taken as the key. Applied to Equation (2), the CPA intermediate is HW ( mul f ( O guess , x ) ) with 16 hypotheses per secret nibble. As shown below, the linearity of the map introduces confounds that a straightforward global-maximum CPA does not survive, and which motivate the partial-correlation treatment in Section 6.

3. The PQ-NEXT Framework and the Placement of This Study

This study is carried out within PQ-NEXT (Post-Quantum Networks for Energy-Efficient Transitions), a Horizon Europe research and innovation action that develops a framework and toolbox for migrating large-scale infrastructures from classical to post-quantum cryptography, continuing the earlier PQ-REACT project’s comparative evaluation of post-quantum signatures [24,25]. Figure 1 summarises the PQ-NEXT approach as a layered platform. The constituent layers are: (i) a PQC Algorithm Catalogue, which curates quantum-resistant primitives across the lattice, code, hash, isogeny, MPC-in-the-Head and multivariate families, together with hybridisation mechanisms; (ii) a Maintenance Tools layer, which provides energy monitoring, key management, system updates, compliance auditing and a crypto-agility module; (iii) a Network Security and Quantum-Resistant Communication layer, which secures next-generation networks; (iv) a Post-Quantum Programming Suite and Quantum Cryptanalysis foundation, built on Eclipse Qrisp and LLVM, which assesses candidate algorithms; and (v) a Migration Toolbox, which drives planning, implementation, compatibility, compliance, risk and cost analysis. The whole is exercised in large-scale pilot demonstrators spanning finance, telecommunications, critical infrastructure and municipal services.
Implementation security is an explicit concern of PQ-NEXT. Its network-security layer commits to mitigating side-channel and fault attacks through masking/blinding, randomness injection and control-flow integrity, “beyond the cryptographic algorithm level”; its benchmarking work package assesses the resilience and quality of post-quantum candidates on real and simulated platforms; and one of its cross-cutting needs is adaptation to resource-constrained devices. The algorithm catalogue explicitly spans the multivariate and MPC-in-the-Head families to which MAYO belongs. Both contributing institutions—NCSR “Demokritos” (project coordinator) and AGH University of Krakow—are PQ-NEXT partners.
Against this backdrop, the present study is the implementation-security control experiment for a multivariate candidate on a constrained target. It provides an on-hardware, reproducible leakage-assessment baseline (TVLA) and a first-order CPA key-recovery analysis of the MAYO secret linear map on a Cortex-M4, and it derives the masking-and-evaluation roadmap (Section 9) against which the project’s countermeasures are to be measured. Table 1 maps each element of the study onto the PQ-NEXT layer, work package and expected outcome it serves.

5. Target Analysis and Threat Model

5.1. Isolating the Sensitive Primitive

In the MAYO-C reference, signing forms each signature block via a matrix–vector product implemented as an accumulation of GF ( 16 ) products, O x i [ r ] = j mul f ( O [ r ] [ j ] , x i [ j ] ) , where mul f is the GF ( 16 ) multiplication modulo x 4 + x + 1 . The secret matrix O is stored one GF ( 16 ) nibble per byte, occupying 624 bytes for MAYO-1 ( v × o = 78 × 8 ). The public multiplicand x i is the last o bytes of every signature block. Equation (2) is therefore the elementary secret operation, and it is exactly what is bracketed for measurement.

5.2. Feasibility Constraint and the Reduced Target

A key engineering decision follows from the target’s memory. The reference key expansion inflates the 24-byte seed into roughly 144 KB of RAM-resident key material (a P 1 table of 120,159  bytes and a P 2 table of 24,336  bytes), whereas the STM32F303 provides only about 48 KB of SRAM. Full reference mayo_sign therefore cannot run on this device—it is roughly threefold over budget—and the Cortex-M4 pqm4 MAYO variants likewise target larger-SRAM parts. Accordingly, a reduced target is built that isolates exactly the secret linear map, which at 624 bytes fits trivially, while reusing the MAYO-C GF ( 16 ) arithmetic sources verbatim so that the instruction-level leakage of mul f is identical to the reference. This is standard practice: bracketing the sensitive primitive is precisely what both TVLA and CPA are meant to interrogate, and it removes confounds from unrelated key expansion so that any measured leakage is attributable to the map itself.

5.3. Threat Model

The standard non-invasive power side-channel adversary is assumed. The attacker can trigger signing (or, here, the isolated map) on chosen or known public inputs x i , observe the device’s power consumption at the sampling rate of a commodity oscilloscope-class capture board, and knows the algorithm and its implementation. The attacker does not know the secret matrix O and cannot read internal memory. This is exactly the capability of a laboratory evaluator performing a leakage assessment on a candidate implementation, which is the role adopted here. In order to provide ground truth for the CPA distinguisher, the reduced target holds a fixed and known matrix O flat [ i ] = ( 7 i + 3 ) mod 16 , giving a first row O [ 0 ] = [ 3 , A , 1 , 8 , F , 6 , D , 4 ] . The attack code is never given this value, which is used only to score recovery after the fact.

6. Materials and Methods

6.1. Device Under Test and Instrumentation

The target is an STM32F303 (ARM Cortex-M4, ∼48 KB SRAM, 256 KB flash) on a CW308 UFO board, measured with a ChipWhisperer-Lite CW1173. The device runs a SimpleSerial (v1.1) firmware compiled with arm-none-eabi-gcc for the CW308_STM32F3 platform. The built image is compact—RAM occupancy 2392 bytes of 40 KB usable ( 5.84 % ) and ROM 5148 bytes of 256 KB ( 1.96 % )—confirming that the isolated map leaves ample headroom.
We expose a single firmware command that accepts an 8-nibble public input x i , raises the capture trigger, computes O x i = O · x i , lowers the trigger, and returns the 16 output nibbles. Compiler memory barriers are placed immediately inside the trigger to prevent the -O2 scheduler from moving instructions across the trigger boundary:
trigger_high();
__asm__ volatile("" ::: "memory");
mat_mul(O, x, Ox, o, v, 1);
__asm__ volatile("" ::: "memory");
trigger_low();
We confirmed by inspection of the disassembly that mul f is inlined between the trigger writes: the bit-mask partial products, the XOR accumulation and the mod x 4 + x + 1 reduction all appear inside the bracketed region, so the measured window faithfully spans the GF ( 16 ) multiply.

6.2. Capture Configuration

We capture at a 7.37  MHz target clock with the ADC in × 4 synchronous mode ( 29.54  MS/s), 25 dB gain, and a window of 5000 samples per trace; the trigger is on tio4 and serial on tio1/tio2. For the leakage assessment, the two TVLA classes are interleaved by a per-trace coin flip so that slow drift affects both classes equally. We persist the raw traces and the known inputs on every capture, so that the same data drive both the t-test and the subsequent CPA.

6.3. Leakage-Assessment Procedure

A non-specific fixed-versus-random TVLA is performed. The fixed class uses a constant x i ; the random class draws a fresh uniform x i per trace. Welch’s t-statistic (Equation (3)) is computed point-wise across the 5000-sample window and compared to the | t | > 4.5 threshold. We report both a low-trace “smoke” run and a full run, so as to expose the expected growth of the statistic with trace count.

6.4. CPA Distinguisher and Confound Handling

The naive attack correlates HW ( mul f ( g , x j ) ) over all 16 hypotheses g at every sample. Two confounds, both intrinsic to a linear  GF ( 16 ) map, defeat it:
1.
Multiplicative-identity input-load alias. Because mul f ( 1 , x ) = x in GF ( 16 ) , the hypothesis g = 1 predicts exactly HW ( x ) , which coincides with the strong, pervasive leakage of the public input being (re)loaded from memory on every row. A global-maximum CPA therefore returns g = 1 for every nibble—correct only where the true nibble happens to be 1. This alias is removed by partial correlation, i.e., by linearly regressing HW ( x j ) out of the traces before correlating, annihilating the g = 1 predictor.
2.
Temporal row-mixing. Each public x j multiplies O [ r ] [ j ] for all 78 rows, so a full-trace search mixes contributions from many rows. Within the 5000-sample window the first row’s eight products are separated in time at a fixed cadence, empirically POI ( j ) = 130 + 100 j samples. Therefore, each nibble is correlated only within a tight window around its point of interest.
Partial correlation has one benign side effect that must be handled explicitly, as it is load-bearing for the reported key-space figures. Regressing out HW ( x j ) annihilates the g = 1 predictor, so a nibble whose true value is 1 becomes invisible to the partial-correlation spectrum—precisely the case the alias removal was designed to suppress. Such a nibble is nonetheless identifiable without knowledge of the key, by the conjunction of two attacker-observable conditions: the plain spectrum peaks at g = 1 , and the partial spectrum is flat. The adopted decision rule is “report 1 when the plain maximum is g = 1 and the partial peak falls below 0.30 ”, and score that nibble under the plain spectrum. On the acquired data the rule fires on exactly one nibble ( j = 2 , whose true value is indeed 1) and does so with a wide margin: its partial peak is 0.151 , whereas every other nibble’s exceeds 0.476 . No ground-truth information enters the rule, so the reported ranks are attacker-computable throughout.
The final distinguisher combines points-of-interest windowing, partial-correlation removal of the input-load alias, and the identity disambiguation rule above. Recovery is scored by the rank of the true nibble in the sorted correlation list, where rank 1 denotes exact top-1 recovery and random guessing gives an expected rank of 8.5 over 16 candidates. Additionally, recovery is scored by the product of per-nibble ranks, which bounds the residual key-space of the row under an enumerate-by-rank strategy.

6.5. Statistical Rigour of the Assessment

Beyond the point-wise Welch t-test, three additional rigour measures are reported. (i) A traces-to-detection curve—the peak | t | as a function of the number of traces per class—which both quantifies how quickly the unprotected leak is detected and, for the protected map, distinguishes removed leakage (flat curve) from merely attenuated leakage (growing as N ). (ii) An independent χ 2 -based leakage-detection test [22], which bins each sample’s two class populations into a contingency table and is sensitive to higher-moment differences the mean-based t-test can miss; its peak is reported alongside the t peak. (iii) A same-secret control (one class split against itself), which has no secret-dependent leakage by construction and therefore measures the drift/noise floor of the acquisition—indispensable for a near-threshold protected implementation. All acquisitions fix the two secret matrices and the public-input sequence by seed and are repeated across independent runs; the protected-map assessment additionally interleaves the two classes in short blocks so that slow drift affects both equally.

7. Results

7.1. Leakage Assessment

The unprotected secret linear map leaks strongly and pervasively. Table 3 summarises the two runs: a 60-trace-per-class smoke test already exceeds the threshold with a peak | t | = 15.05 ( 969 / 5000 points failing), and the full 1000-trace-per-class run reaches a peak | t | = 53.71 with 2971 of 5000 points exceeding 4.5 . A peak t-statistic of 53.7 against a 4.5 bar is enormous: over half of the observation window carries first-order, input-dependent leakage. This is the headline defensive finding—an unprotected O · x implementation would fail any leakage-assessment gate outright.
Furthermore, the fixed-versus-fixed test—which isolates secret-dependent leakage by holding the public inputs identical across two distinct secret matrices—is even more emphatic, reaching a peak | t | = 195.7 with 12,298 of 20,000 samples failing; an independent χ 2 leakage-detection test [22] peaks at 975 (threshold 20 at 8 degrees of freedom), corroborating the t-test. As few as N = 25 traces per class already drive the peak statistic above 4.5 (Figure 5), so the traces-to-detection is negligible. Figure 2(left) shows the t-trace: leakage saturates the entire ∼ 15,600 -cycle matrix–vector product and collapses to the noise floor only once the computation ends.
Figure 2. Fixed-versus-fixed TVLA t-traces (dashed lines: the ± 4.5 decision band). Left: the unprotected O · x map leaks across the whole computation, peaking at | t | = 195.7 . Right: the masked and shuffled countermeasure (Section 8), measured with a drift-free block-interleaved acquisition on the same device, stays within | t | = 3.62 < 4.5 at every one of the 24 , 000 sample points.
Figure 2. Fixed-versus-fixed TVLA t-traces (dashed lines: the ± 4.5 decision band). Left: the unprotected O · x map leaks across the whole computation, peaking at | t | = 195.7 . Right: the masked and shuffled countermeasure (Section 8), measured with a drift-free block-interleaved acquisition on the same device, stays within | t | = 3.62 < 4.5 at every one of the 24 , 000 sample points.
Preprints 228350 g002

7.2. Correlation Power Analysis

We attack the first row of O using 1000 random-input traces. Table 4 reports, per nibble j, the sample index of the point of interest, the recovered value, the ground-truth value, whether the recovery is exactly top-1, and the rank of the true nibble in the correlation ordering. The partial-correlation, points-of-interest distinguisher recovers 5 of the 8 nibbles exactly, with per-nibble true-key ranks [ 2 , 1 , 1 , 1 , 4 , 1 , 3 , 1 ] . The mean true-key rank is 1.75 / 16 , far below the random-guessing expectation of 8.5 . Taking the product of the per-nibble ranks, the first key-row search space collapses from 16 8 4.29 × 10 9 to just 24 candidates—an exploitable break under straightforward enumeration (Figure 3).
Figure 3. CPA of the first row of O . Left: rank of the true key nibble in the sorted correlation list (green = exact top-1; dashed line = random-guess expectation 8.5 ); the mean rank is 1.75 / 16 . Right: partial-correlation spectrum over the 16 hypotheses for nibble j = 0 at its point of interest; the true value (gold) is the second-ranked candidate.
Figure 3. CPA of the first row of O . Left: rank of the true key nibble in the sorted correlation list (green = exact top-1; dashed line = random-guess expectation 8.5 ); the mean rank is 1.75 / 16 . Right: partial-correlation spectrum over the 16 hypotheses for nibble j = 0 at its point of interest; the true value (gold) is the second-ranked candidate.
Preprints 228350 g003
Table 4. Partial-correlation CPA of the first row of O (1000 random-input traces, the released trace set). “Rank” is the position of the true nibble in the sorted correlation list (1 = exact recovery; random = 8.5 ).
Table 4. Partial-correlation CPA of the first row of O (1000 random-input traces, the released trace set). “Rank” is the position of the true nibble in the sorted correlation list (1 = exact recovery; random = 8.5 ).
Nibble j POI (sample) Recovered True Rank
0 130 0x6 0x3 2
1 230 0xA 0xA 1
2 330 0x1 0x1 1
3 430 0x8 0x8 1
4 530 0xE 0xF 4
5 630 0x6 0x6 1
6 730 0x6 0xD 3
7 830 0x4 0x4 1
Recovered row 6 A 1 8 E 6 6 4
Ground truth 3 A 1 8 F 6 D 4
Table 5. Summary CPA metrics for the first row of O .
Table 5. Summary CPA metrics for the first row of O .
Metric Value
Exact top-1 nibbles 5 / 8
Per-nibble true-key ranks [ 2 , 1 , 1 , 1 , 4 , 1 , 3 , 1 ]
Mean true-key rank 1.75 / 16 (random = 8.5 )
Row-0 key-space reduction 16 8 4.29 × 10 9 24
Additionally, as a control, the naive global-maximum CPA (without partial correlation) recovers only 1 / 8 nibbles—exactly the multiplicative-identity alias predicted in Section 6.4, where every nibble is reported as 1 and is “correct” only where the true value is 1. This confirms that the confound handling, not raw signal, is what makes the attack work.

7.3. Beyond the First Row: Full-Key Argument

The same distinguisher applies in principle to every row of O , while a careful separation is maintained between what was measured and what is extrapolated. Within a single fixed-trigger capture, only the rows that fall inside the aligned, high signal-to-noise portion of the window are recoverable. Row 0 collapses to 24 candidates as reported above; row 1, which lies outside that window in the 5000-sample row-0 capture, yields a mean per-nibble rank of 9.62 / 16 — statistically indistinguishable from the random-guessing expectation of 8.5 —and no useful reduction ( 1.86 × 10 7 candidates). This is an alignment effect, not a difference in leakage: each row executes the same GF ( 16 ) multiply sequence.
Two measurements bound the full-key cost. Attacking all 78 rows directly from a single wide ( 20,000 -sample) fixed-versus-fixed capture gives a mean per-nibble rank of 12.10 and a residual enumeration cost of 2 2089 against the nominal 16 624 = 2 2496 . Re-attacking six rows with per-row calibrated windows on a dedicated 2500-trace capture reduces the mean per-row residual to 20.74 bits, which extrapolates to 2 1617 for the full matrix. The measured reduction is therefore substantial—of the order of 880 bits below the nominal key space—but it is a reduction, not a complete break: reaching the row-0 figure on every row would require a per-row retriggered campaign that places each row in the same high-SNR position, which has not been performed. This bound is reported, together with the per-row detail, as released data, and the retriggered full-key campaign is identified as the natural next step (Section 9).
Two caveats bear on any per-row generalisation from this dataset. First, the firmware test key is generated as O flat [ i ] = ( 7 i + 3 ) mod 16 , so with o = 8 columns the row content repeats with period two ( 56 8 ( mod 16 ) ); rows 0 and 2 are identical by construction and cannot be treated as independent evidence. Second, the per-row extrapolation above assumes the row-0 leakage model transfers unchanged to rows acquired under separate triggers, which the present data can neither confirm nor refute.

8. A First-Order Countermeasure and Its Evaluation

The strong leakage of the unprotected map constitutes a defensive call to action. The proposed countermeasure is designed to provide an efficient, portable and verifiable first-order protection of the MAYO secret linear map, integrating fresh Boolean sharing, temporal share separation and independent per-pass row shuffling. It is structured into three mechanisms, in order to ensure that both the algorithmic and the micro-architectural leakage components are addressed. Furthermore, it is evaluated on the same STM32F303, closing the loop from leakage assessment to measured protection.

8.1. Design: Masking and Shuffling

Because GF ( 16 ) multiplication is F 2 -linear in its first argument, additive Boolean masking of the secret matrix distributes over the map: writing O = O 0 O 1 with O 0 a fresh uniform random matrix drawn per invocation,
O · x = ( O 0 O 1 ) · x = ( O 0 · x ) ( O 1 · x ) ,
so no gadget beyond share-wise matrix–vector products is required. We adopt this construction as the software analogue of the oil-space blinding used in hardware accelerators [19] and reuses the sharing philosophy of the multivariate masking gadgets [16,17,18]. Three implementation choices were made, in order to render the masking effective on a Cortex-M4, where naive sharing is known to leak through micro-architectural recombination. These are:
1.
Temporal share separation. The two share products O 0 · x and O 1 · x are computed in two separate passes, and the shares are recombined only after the measured (trigger-bracketed) region, so no sample manipulates O 0 [ r ] [ j ] and O 1 [ r ] [ j ] back-to-back (which would leak their Hamming distance HW ( O [ r ] [ j ] ) ).
2.
Row shuffling. Each share pass evaluates the v = 78 output rows in an independent uniformly random order (two Fisher–Yates permutations from an on-device xorshift32 generator), so any residual per-row leakage is diluted across 78 time slots and no fixed sample corresponds to a fixed secret row.
3.
Fresh randomness. Masks and permutations are regenerated every invocation, outside the trigger, so leakage of the mask itself does not enter the measured window.
Overall, masking removes the first-order dependence on O , while shuffling removes the residual, micro-architectural component that pure masking leaves on this core. The necessity of the second step is measured, not assumed: the naive two-share implementation without row shuffling (firmware/mayo_lm_masked.c), assessed under the identical fixed-versus-fixed protocol at 1000 traces per class, still fails the gate decisively at max | t | = 17.94 with 10,799 of 24,000 points exceeding 4.5 (and χ 2 = 371 ). Boolean sharing alone therefore buys roughly an order of magnitude, i.e., 195.7 17.94 . However, it leaves a first-order component an order of magnitude above the decision threshold, and only the addition of independent per-pass row shuffling brings the statistic below it.

8.2. Measured Overhead

We measured the protected and unprotected execution costs directly from the capture board’s cycle counter (trigger-high duration at one sample per clock), which is deterministic across runs (Table 6). The masked, shuffled map costs 36,130 cycles against 16,242 for the unprotected map—an overhead of 2 . 22 × . Masking alone (two share passes, no shuffle) costs 2.19 × , so shuffling adds only ∼ 1.5 % . This is at the low end of reported multivariate first-order costs, i.e., mUOV signing at 3.5 ×  [16] and masked Gaussian elimination at ∼ 15 × on Cortex-M4 [17]. The result is consistent with the fact that blinding a single linear map is cheaper than masking a full solver, and it is comparable to the < 30 % hardware overhead of oil-space blinding [19].

8.3. Leakage Evaluation

The fixed-versus-fixed TVLA (two distinct secret matrices O A , O B , identical public-input sequence) is repeated on the protected firmware. A methodological point proved essential: because the protected map’s residual leakage, if any, is small, the assessment is sensitive to slow acquisition drift. Capturing the two classes in sequential blocks yields a peak of | t | = 9.72 , which a same-secret control—splitting one class against itself, where no secret-dependent leakage can exist—shows to be dominated by slow acquisition drift rather than by leakage. Therefore, we acquire the two classes in short interleaved blocks of 25 traces, so that both classes traverse the same drift trajectory. Under this drift-free acquisition the same-secret control falls to | t | = 4.12 and | t | = 4.52 for the two classes, establishing the measurement floor of the setup, and the protected map yields
max | t | = 3.62 < 4.5 , 0 / 24,000 points failing ,
a 54 × reduction from the unprotected peak of 195.7 , with the χ 2 leakage test likewise falling from 975 to 27. The residual sits below the same-secret drift floor ( | t | 4.1 4.5 ), i.e. no secret-dependent leakage is detectable above the measurement noise. Figure 2 (right) shows the flat protected t-trace, and Figure 4 overlays the two implementations.
Furthermore, the protected map’s statistic does not grow with trace count, in that: across N = 50 to 800 traces per class it stays in the 3.6 4.6 band, whereas the unprotected statistic crosses 4.5 by N = 25 and climbs past 190 (Figure 5). A leaking implementation’s | t | grows as N ; the flat curve is the signature of leakage that has been removed rather than merely attenuated. Each acquisition was repeated and the two secret matrices and the public-input sequence are fixed by seed, so the assessment is fully reproducible.
Figure 5. Peak | t | versus traces per class (log scale). The unprotected map is detected almost immediately and grows as N ; the protected map remains below 4.5 and shows no growth, the expected behaviour when first-order leakage is absent.
Figure 5. Peak | t | versus traces per class (log scale). The unprotected map is detected almost immediately and grows as N ; the protected map remains below 4.5 and shows no growth, the expected behaviour when first-order leakage is absent.
Preprints 228350 g005
Masked MAYO subroutines for the Cortex-M4 assessed by TVLA have been reported before [15]. To the authors’ knowledge, this is the first MAYO GF ( 16 ) secret map protected by masking and shuffling and assessed under a secret-dependent fixed-versus-fixed test. The result is reported against the 4.5 gate with an explicit count of failing sample points ( 0 / 24,000 ), a measured cycle-count overhead, and evidence that masking alone is insufficient on this core. Overall, the experiments highlight the practical trade-off between protection and cost that a constrained device must absorb. The 2.22 × cycle penalty is modest against the reported multivariate first-order costs, yet it is not free, in that it roughly doubles the latency of the signing hot path and consumes fresh randomness on every invocation, which is a scarce resource on parts without a hardware entropy source. Furthermore, the row shuffling that proved necessary to cross the 4.5 gate is precisely the component that resists formal probing-model argument, so the countermeasure trades a measured guarantee for a provable one. A second-order adversary that combines the two share passes is therefore out of scope for a first-order countermeasure, and extending the sharing order and adding temporal jitter constitute the natural next steps (Section 9).

9. Discussion

9.1. Why the First-Order Model Saturates

The three nibbles that are not recovered top-1 fail in a characteristic way that identifies the leakage model, rather than measurement noise, as the limiting factor. A fine scan of nibble 0 shows that the true value 0 x 3 does peak at the correct point of interest (sample 130, partial correlation 0.544 ), but a GF ( 16 ) -related competitor 0 x 6 edges it ( 0.562 ), a margin of under 0.02 . Repeating the acquisition and increasing the trace count leaves the ranking of these near-ties unchanged, which is the signature of a systematic model mismatch: additional traces reduce the variance of an estimator that is converging on the wrong maximum. This is the expected behaviour of a Hamming-weight model applied to a single GF ( 16 ) multiply inside a linear map: the model is an imperfect fit for the exact bit-level leakage, and products from neighbouring rows create spurious peaks. Critically, the true key remains a top-1-to-4 candidate throughout, so the attack still collapses the key-space to an enumerable 24 candidates for the row. Whether the same reduction can be realised on all 78 rows is an alignment question rather than a leakage question (Section 7.3), in that it requires per-row retriggering, which has not been performed.
The saturation is therefore not a failure of the platform’s leakage—TVLA already established that leakage is overwhelming—but a property of the distinguisher. Three well-understood upgrades would sharpen recovery to a clean top-1 per nibble: a profiled/template attack that builds per-value or per-Hamming-weight templates; a stochastic/linear-regression model that fits per-bit leakage weights instead of assuming uniform Hamming weight; and a chained-accumulator model that recovers O [ 0 ] [ 0 ] first and conditions each subsequent nibble on the already-recovered ones, matching the accumulation order of lincomb. These are the same mechanisms that let the published single-trace profiled attacks reach near-certain recovery; the presented contribution here is to make explicit, on a reproducible non-profiled baseline, exactly where the simple model breaks and why.

9.2. From Assessment to Countermeasure: What Was Measured and What Remains

Overall, the countermeasure of Section 8 realises, on hardware, the two steps that a defensive study in this space is expected to deliver: a first-order masked (blinded) GF ( 16 ) map with a measured overhead ( 2.22 × ) and an on-device fixed-versus-fixed TVLA below the 4.5 gate ( | t | = 3.62 ), rather than a gadget-level probing proof alone. Two design lessons generalise. First, on a Cortex-M4, naive Boolean sharing is not sufficient: it was observed that masking alone leaves a residual, micro-architectural first-order component, and that independent per-pass row shuffling is what suppresses it below the gate—the classic pitfall that has broken nominally first-order-secure masked software, made concrete here. Second, evaluating a near-threshold countermeasure demands drift-free acquisition; a sequential capture would have reported a spurious | t | = 9.72 that a same-secret control unmasks as drift.
Finally, three extensions remain, which map directly onto PQ-NEXT’s side-channel/fault mitigation, crypto-agility and benchmarking activities:
1.
Higher-order security. A second-order adversary can combine the two share passes; extending to d 2 shares (with refreshed masks) and adding temporal jitter would target higher-order resistance, at a cost that the multivariate masking literature quantifies [16,17,18].
2.
Integration into full signing. Here the map is isolated for measurement; folding the shared output into the vinegar addition s i = v i + O x i (so the vinegar acts as a further share) and re-assessing within full mayo_sign is the deployment step.
3.
Cross-parameter and cross-scheme coverage. Repeat on MAYO-2 ( o = 17 , k = 4 change the map geometry) and extend the same reduced-target methodology to the other embedded multivariate candidates, for which hardware-evaluated masking is likewise absent.
Delivering a masked MAYO GF ( 16 ) map with measured overhead and on-device leakage evaluation fills the single clearest gap in MAYO implementation security and is directly responsive to the emphasis on physical-attack resistance in the ongoing NIST additional-signatures evaluation.

9.3. Limitations

The detailed recovery figures are reported for the first row of O within a single capture window. Section 7.3 bounds the full-key enumeration cost by direct measurement ( 2 2089 across all 78 rows) and by per-row extrapolation ( 2 1617 ). However, a uniform per-row recovery matching the row-0 figure needs per-row retriggering or a wider and slower capture, which has not been performed and is left to full-signing integration. The full-key cost should therefore be read as a measured bound, rather than as a proven break. The fixed test key also repeats with period two across rows, so this dataset cannot establish row-to-row independence. The reduced target faithfully reproduces the GF ( 16 ) multiply but not the surrounding key-expansion memory traffic of full signing; this is deliberate, as it isolates the primitive, but it means absolute leakage magnitudes in a full implementation may differ. The countermeasure is evaluated at first order on the isolated map, while second-order security and integration into full mayo_sign (where the vinegar addition supplies a further share) remain future work (Section 9). Finally, the ground-truth matrix is a fixed known value used only for scoring; the attack code operates without it, but a profiled attack would still need a controllable profiling device, as is standard.

10. Conclusions

This work presented a complete and reproducible power side-channel attack-and-defence case study of the MAYO secret linear map on a commodity Cortex-M4 evaluation platform. TVLA established that the unprotected O · x operation leaks overwhelmingly, at | t | = 53.7 fixed-versus-random and | t | = 195.7 fixed-versus-fixed on the secret, corroborated by a χ 2 peak of 975. Additionally, a non-profiled partial-correlation CPA that explicitly handles the two confounds of a linear GF ( 16 ) map recovered 5 / 8 first-row nibbles exactly, thus driving the mean true-key rank to 1.75 / 16 and collapsing the row search space from 16 8 to 24 candidates, against a measured full-matrix enumeration bound of 2 2089 and a nominal 2 2496 . Building on this baseline, the proposed first-order countermeasure—a masked and row-shuffled GF ( 16 ) map—was implemented and evaluated on the same device, realizing a leakage reduction approaching 54 × , to | t | = 3.62 < 4.5 with no failing sample point and a statistic flat in trace count, at a measured overhead of roughly 2.22 × cycles under a drift-free block-interleaved acquisition. In contrast to the masked MAYO Cortex-M4 subroutines already reported in the literature [15], the proposed approach combines masking with per-pass row shuffling—shown to be necessary, since masking alone still leaks at | t | = 17.94 —together with a secret-dependent fixed-versus-fixed assessment reported against the 4.5 gate with an explicit count of failing sample points.
Conducted within the PQ-NEXT project, the presented study supplies concrete, on-hardware implementation-security evidence for a NIST additional-signatures multivariate candidate on a constrained device, thus contributing to the project’s goals of post-quantum algorithm maturity, side-channel and fault hardening, and good-practice demonstrators, while remaining directly relevant to the physical security criteria of the ongoing NIST evaluation. Beyond the immediate cryptographic result, the release of the firmware, capture and analysis code, and raw traces lowers the barrier for independent evaluators and device vendors to reproduce a leakage assessment on their own silicon, which is an important aspect for the certification pathways that post-quantum migration in regulated sectors will require. Future work will focus on three directions. These are: (i) extending the sharing order beyond first order and adding temporal jitter, in order to address a second-order adversary that combines the two share passes; (ii) integrating the protected map into full mayo_sign, where the vinegar addition supplies a further share; and (iii) a per-row retriggered acquisition campaign, in order to establish the full-key recovery cost by measurement rather than by extrapolation.

Author Contributions

Conceptualization, M.-A.K. and G.X.; methodology, V.L. and A.E.; software, A.E. and F.O.; validation, V.L., M.N. and F.O.; formal analysis, V.L. and M.-A.K.; investigation, A.E.; resources, G.X. and M.N.; data curation, A.E.; writing—original draft preparation, V.L. and M.-A.K.; writing—review and editing, G.X., M.N. and F.O.; visualization, A.E.; supervision, M.-A.K. and M.N.; project administration, G.X.; funding acquisition, G.X. and M.N. All authors have read and agreed to the published version of the manuscript.

Funding

This work has received funding from the European Union’s Horizon Europe research and innovation programme under grant agreement No. 101225759 (PQ-NEXT, Post-Quantum Networks for Energy-Efficient Transitions). It builds on results of the PQ-REACT project (Horizon Europe grant agreement No. 101119547). Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the European Union. Neither the European Union nor the granting authority can be held responsible for them.

Data Availability Statement

The complete artifact is publicly available, in keeping with the PQ-NEXT open-science policy. The firmware (unprotected, masked, and masked + shuffled), the TVLA/CPA capture and analysis scripts, the drift-free block-interleaving capture harness, and the measured results are released at https://github.com/core-ncsrd/mayo-sca-repo. The raw trace sets underlying every reported figure and table—comprising the unprotected, masked-only and masked-and-shuffled acquisitions, together with both the sequential and the drift-free block-interleaved captures of the protected implementation—are archived under a permanent Zenodo DOI at https://doi.org/10.5281/zenodo.21898813 (dataset, CC BY 4.0). The released material includes the exact firmware cycle-count and t-versus-N procedures, so that the 2.22 × overhead and the sub-threshold TVLA can be re-derived on any CW308_STM32F3 target.

Institutional Review Board Statement

Not applicable. This study did not involve humans or animals.

Acknowledgments

The authors thank the maintainers of the MAYO-C reference implementation and the ChipWhisperer project, whose open tooling made this study possible, and the PQ-NEXT consortium for valuable discussions on post-quantum implementation security.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

CPA Correlation Power Analysis
DPA Differential Power Analysis
GE Gaussian Elimination / Guessing Entropy (as indicated in context)
GF ( 16 ) Galois field with 16 elements
MAYO Whipped Oil-and-Vinegar post-quantum signature scheme
NIST National Institute of Standards and Technology
POI Point of Interest
PQC Post-Quantum Cryptography
SCA Side-Channel Analysis
SNR Signal-to-Noise Ratio
TtD Traces-to-Detection
TVLA Test Vector Leakage Assessment
UOV Unbalanced Oil and Vinegar

References

  1. National Institute of Standards and Technology. Post-Quantum Cryptography: Digital Signature Schemes—Call for Additional Signatures; NIST: Gaithersburg, MD, USA, 2023. Available online: https://csrc.nist.gov/projects/pqc-dig-sig (accessed on 25 July 2026).
  2. Beullens, W. MAYO: Practical Post-Quantum Signatures from Oil-and-Vinegar Maps. In Selected Areas in Cryptography (SAC 2021); Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2022; Volume 13203, pp. 355–376. Cryptology ePrint Archive, Paper 2021/1144.
  3. Beullens, W.; Campos, F.; Celi, S.; Hess, B.; Kannwischer, M.J. MAYO: Specification Document, Round-2 version; NIST PQC Additional Signatures Submission, 2025. Available online: https://pqmayo.org/assets/specs/mayo-round2.pdf (project page: https://pqmayo.org; both accessed on 12 August 2026).
  4. Sayari, O.; Marzougui, S.; Aulbach, T.; Krämer, J.; Seifert, J.-P. HaMAYO: A Fault-Tolerant Reconfigurable Hardware Implementation of the MAYO Signature Scheme. In Constructive Side-Channel Analysis and Secure Design (COSADE 2024); Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2024; Volume 14595. Cryptology ePrint Archive, Paper 2023/1135.
  5. Hirner, F.; Streibl, M.; Mert, A.C.; Sinha Roy, S. Whipping the Multivariate-Based MAYO Signature Scheme Using Hardware Platforms. In Proceedings of the 2024 ACM SIGSAC Conference on Computer and Communications Security (CCS); ACM: New York, NY, USA, 2024; pp. 3421–3435. Cryptology ePrint Archive, Paper 2023/1267.
  6. Goodwill, G.; Jun, B.; Jaffe, J.; Rohatgi, P. A Testing Methodology for Side-Channel Resistance Validation. In NIST Non-Invasive Attack Testing Workshop (NIAT), 2011.
  7. Schneider, T.; Moradi, A. Leakage Assessment Methodology—A Clear Roadmap for Side-Channel Evaluations. In Cryptographic Hardware and Embedded Systems (CHES 2015); Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2015; Volume 9293, pp. 495–513.
  8. Brier, E.; Clavier, C.; Olivier, F. Correlation Power Analysis with a Leakage Model. In Cryptographic Hardware and Embedded Systems (CHES 2004); Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2004; Volume 3156, pp. 16–29.
  9. Aulbach, T.; Marzougui, S.; Seifert, J.-P.; Ulitzsch, V.Q. MAYo or MAY-not: Exploring Implementation Security of the Post-Quantum Signature Scheme MAYO Against Physical Attacks. In Workshop on Fault Detection and Tolerance in Cryptography (FDTC 2024); IEEE: Piscataway, NJ, USA, 2024; pp. 28–33.
  10. Jendral, S.; Dubrova, E. MAYO Key Recovery by Fixing Vinegar Seeds. IACR Communications in Cryptology 2024, 1(4), Article 17. Cryptology ePrint Archive, Paper 2024/1550. [CrossRef]
  11. Jendral, S.; Dubrova, E. Single-Trace Side-Channel Attacks on MAYO Exploiting Leaky Modular Multiplication. Cryptology ePrint Archive, Paper 2024/1850, 2024. Preprint of [12].
  12. Jendral, S.; Dubrova, E. Single-Trace Side-Channel Attacks on MAYO Exploiting Leaky Modular Multiplication. In QRSEC ’25: Proceedings of the 2025 1st Workshop on Quantum-Resistant Cryptography and Security; ACM: New York, NY, USA, 2026; pp. 21–30. Peer-reviewed version of [11]. [CrossRef]
  13. Vishwaajith, N.K.; Ganguly, A.; Pal, D.; Yap, T.; Mondal, P.; Kundu, S.; Saha, S.; Bhasin, S.; Verbauwhede, I.; Karmakar, A. SCA-MQDSA: Side-Channel Analysis of Multivariate Digital Signature Implementations. Cryptology ePrint Archive, Paper 2026/228, 2026.
  14. Aulbach, T.; Campos, F.; Krämer, J.; Samardjiska, S.; Stöttinger, M. Separating Oil and Vinegar with a Single Trace: Side-Channel Assisted Kipnis– Shamir Attack on UOV. IACR Transactions on Cryptographic Hardware and Embedded Systems 2023, 2023(3), 221–245.
  15. Aulbach, T.; Campos, F.; Krämer, J. SoK: On the Physical Security of UOV-Based Signature Schemes. In Post-Quantum Cryptography (PQCrypto 2025); Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2025; Volume 15577, pp. 199–231. Cryptology ePrint Archive, Paper 2024/1818.
  16. Kundu, S.; Norga, Q.; Karmakar, A.; Ojha, U.K.; Ganguly, A.; Verbauwhede, I. mUOV: Masking the Unbalanced Oil and Vinegar Digital Signature Scheme at First- and Higher-Order. In Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security (CCS); ACM: New York, NY, USA, 2025; pp. 1994–2008. Cryptology ePrint Archive, Paper 2024/1875.
  17. Norga, Q.; Kundu, S.; Ojha, U.K.; Ganguly, A.; Karmakar, A.; Verbauwhede, I. Masking Gaussian Elimination at Arbitrary Order, with Application to Multivariate- and Code-Based PQC. In Topics in Cryptology—CT-RSA 2025; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2025. Cryptology ePrint Archive, Paper 2024/1777.
  18. Coron, J.-S.; Gérard, F.; Zhang, B. Masked Solving of Linear Equations System and Application to UOV Signatures. IACR Transactions on Cryptographic Hardware and Embedded Systems 2026, 2026(2), 51–72. Cryptology ePrint Archive, Paper 2026/048.
  19. Krieger, F.; Czuprynko, M.; Sinha Roy, S. Lightweight Hardware Accelerator for the UOV Signature Scheme with Oil Space Blinding. Cryptology ePrint Archive, Paper 2026/1451, 2026.
  20. Abdelmonem, M.; Batina, L.; Chatterjee, D.; Dankbaar, V.; Raddum, H. Splitting the MAYO: A Component-Wise Fault Injection Attack on Randomized MAYO. Cryptology ePrint Archive, Paper 2025/2163, 2025.
  21. Tosun, T.; Oswald, E.; Savaş, E. Non-Profiled Higher-Order Side-Channel Attacks against Lattice-Based Post-Quantum Cryptography. IACR Communications in Cryptology 2025, 2(3), Article 31. Cryptology ePrint Archive, Paper 2025/1257.
  22. Moradi, A.; Richter, B.; Schneider, T.; Standaert, F.-X. Leakage Detection with the χ2-Test. IACR Transactions on Cryptographic Hardware and Embedded Systems 2018, 2018(1), 209–237.
  23. Lampropoulou, V.; Economopoulos, A.; Kourtis, M.-A.; Xilouris, G.; Niemiec, M.; Opiłka, F. PQ-NEXT: MAYO Secret Linear Map on Cortex-M4: Power Side-Channel Traces for Unprotected and Protected Implementations [Data set]; Zenodo, 2026. Source code available at https://github.com/core-ncsrd/mayo-sca-repo. [CrossRef]
  24. PQ-NEXT: Post-Quantum Networks for Energy-Efficient Transitions. Horizon Europe Research and Innovation Action, Grant Agreement No. 101225759, 2025–2028. Available online: https://pqnext.eu (accessed on 9 August 2026).
  25. PQ-REACT: Post-Quantum Cryptography Framework for Energy Aware Contexts. Horizon Europe Research and Innovation Action, Grant Agreement No. 101119547, 2023–2026. Available online: https://pqreact.eu (accessed on 9 August 2026).
Figure 1. The PQ-NEXT layered approach to post-quantum migration and the placement of this study. The present leakage-assessment and CPA case study (right) supplies on-hardware implementation-security evidence for the multivariate MAYO candidate in the algorithm catalogue and feeds the project’s side-channel/fault-mitigation objective in the network-security layer and its crypto-agility and benchmarking activities. Highlighted elements mark the components this study directly informs.
Figure 1. The PQ-NEXT layered approach to post-quantum migration and the placement of this study. The present leakage-assessment and CPA case study (right) supplies on-hardware implementation-security evidence for the multivariate MAYO candidate in the algorithm catalogue and feeds the project’s side-channel/fault-mitigation objective in the network-security layer and its crypto-agility and benchmarking activities. Highlighted elements mark the components this study directly informs.
Preprints 228350 g001
Figure 4. Peak-normalised | t | (log scale) across the trigger window for the unprotected map (peak 195.7 ) and the masked, shuffled countermeasure (peak 3.62 ), against the 4.5 threshold. The countermeasure suppresses leakage below the decision gate everywhere.
Figure 4. Peak-normalised | t | (log scale) across the trigger window for the unprotected map (peak 195.7 ) and the masked, shuffled countermeasure (peak 3.62 ), against the 4.5 threshold. The countermeasure suppresses leakage below the decision gate everywhere.
Preprints 228350 g004
Table 1. Mapping of this study’s elements onto the PQ-NEXT framework.
Table 1. Mapping of this study’s elements onto the PQ-NEXT framework.
Element of this study PQ-NEXT layer / WP / task Serves
TVLA leakage assessment of O · x Network Security layer, side-channel/fault mitigation (T2.3) Hardened, leakage-evaluated implementations
CPA key-recovery baseline Benchmarking of PQC resilience & quality (WP3) Algorithm maturity / standardisation input (EO1)
Masking-and-evaluation roadmap Crypto-Agility Module, Maintenance Tools (T2.2) Concrete countermeasure target
Reference-faithful reduced target PQC Algorithm Catalogue, multivariate family (T2.1) Cross-parameter / cross-scheme coverage
Constrained Cortex-M4 focus Adaptation to resource-constrained devices (SN#8) Good-practice hardware demonstrator (EO5)
Table 2. Differentiation of this work from the closest prior UOV/MAYO side-channel attacks and countermeasures. “Prof.” = profiled (a training/ template phase or deep-learning model); “non-prof.” = non-profiled. TtD = traces-to-disclosure; SR = success rate; GE = guessing entropy / key rank. Overhead is the reported first-order software cost factor where applicable.
Table 2. Differentiation of this work from the closest prior UOV/MAYO side-channel attacks and countermeasures. “Prof.” = profiled (a training/ template phase or deep-learning model); “non-prof.” = non-profiled. TtD = traces-to-disclosure; SR = success rate; GE = guessing entropy / key rank. Overhead is the reported first-order software cost factor where applicable.
Work Target (operation) Platform Prof.? # traces Metric Attack / defence
Jendral–Dubrova [11,12] MAYO (modular mult.) Cortex-M4 Prof. (DL) single trace SR 99.9 % / 91.6 % Attack
SCA-MQDSA [13] UOV/MAYO/QR-UOV/SNOVA ChipWhisperer, STM32F3 Non-prof. single exec. key recovery Attack
Separating Oil & Vinegar [14] UOV (central-map inversion) ChipWhisperer, STM32F3 Non-prof. single trace key recovery Attack
SoK UOV physical sec. [15] UOV and MAYO (signing subroutines) Cortex-M4 (NUCLEO-L4R5ZI) TVLA (prot. vs. unprot.) Defence (masking + fault)
Masking GE [17] UOV/MAYO/SNOVA/QR-UOV (Gaussian elim.) Cortex-M4 probing-model proof Defence (∼ 15 × M4)
mUOV [16] UOV (dot-product, mat.–vec.) Cortex-M4 probing-model proof Defence ( 3.5 × sign)
Coron et al. [18] UOV (linear-system solve) C (probing) probing-model proof Defence (≥ 2.2 × vs. GE)
Krieger et al. [19] UOV (oil-space blinding) FPGA runtime/area Defence (< 30 % runtime)
This work MAYO ( O · x over GF ( 16 ) ) ChipWhisperer, STM32F3 Non-prof. 10 3 (CPA), 8 × 10 2 /class (TVLA) GE / | t | / χ 2 Attack and defence ( 2.22 × )
Table 3. TVLA of the unprotected MAYO-1 secret linear map on the STM32F303. The non-specific fixed-versus-random test (rows 1–2) detects input-dependent leakage; the fixed-versus-fixed test (row 3) uses two distinct secret matrices  O A , O B with an identical public-input sequence, so any | t | > 4.5 is unambiguously secret-dependent. The customary decision threshold is | t | > 4.5 ; the last column of row 3 also reports the χ 2 leakage-detection peak.
Table 3. TVLA of the unprotected MAYO-1 secret linear map on the STM32F303. The non-specific fixed-versus-random test (rows 1–2) detects input-dependent leakage; the fixed-versus-fixed test (row 3) uses two distinct secret matrices  O A , O B with an identical public-input sequence, so any | t | > 4.5 is unambiguously secret-dependent. The customary decision threshold is | t | > 4.5 ; the last column of row 3 also reports the χ 2 leakage-detection peak.
Test Run Traces/class Peak | t | Points > 4.5
Fixed-vs-random Smoke 60 15.05 969 / 5000
Fixed-vs-random Full 1000 53.71 2971 / 5000
Fixed-vs-fixed Full 500 195 . 7 12 , 298 / 20 , 000
Table 6. Measured execution cost (cycles under trigger, STM32F303 at 7.37  MHz) and first-order overhead factor.
Table 6. Measured execution cost (cycles under trigger, STM32F303 at 7.37  MHz) and first-order overhead factor.
Implementation Cycles Overhead
Unprotected O · x 16 , 242 1.00 ×
Masked (two shares) 35 , 565 2.19 ×
Masked + shuffled 36 , 130 2 . 22 ×
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.