You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e039009
Browse filesBrowse the repository at this point in the historyBrowse files
SAKKE: constant time operations on secrets, optional RNG blinding
- Without an RNG, operations on secrets (z_T, RSK, r) are constant time:
reduction, inversion, field add/sub, ModExp and point mapping.
- New wc_SetSakkeRng(): blinding allows faster algorithms to be used.
wc_MakeSakkeRsk() uses it rather than instantiating an RNG per call.
- Table lookups cache resistant unless WC_NO_CACHE_RESISTANT.
- SP P1024: constant time lookups (AVX2 on x86_64), table multiply and
ModExp; fix AVX2 entry over-read, add vzeroupper; fix p1024_order
guard for NO_ECC_CHECK_KEY builds.
- ecc_map_ex() constant time branch uses constant time reduction.
- Fix zMont not reset when making or importing a key.
- Tests and docs for wc_SetSakkeRng().
"comment": "Default (address-oblivious) cache-resistant modexp copy on a normal target: _sp_exptmod_mont_ex (sp_int.c) via _sp_cond_copy and the SAKKE ladder (sakke.c) via mp_cond_copy, which touch both t[0] and t[1] so the accessed address is secret-independent. Nothing else in this matrix builds SAKKE, and on a non-capability target the sp_int.c default is only otherwise reached incidentally. Pairs with modexp-copy-fast-sakke, which flips both to the pointer-copy opt-in.",
109
+
"comment": "Default (address-oblivious) cache-resistant modexp copy on a normal target: _sp_exptmod_mont_ex (sp_int.c) via _sp_cond_copy, which touches both t[0] and t[1] so the accessed address is secret-independent, alongside the SAKKE F_p* exponentiation (sakke.c), which always uses mp_cond_copy. Nothing else in this matrix builds SAKKE, and on a non-capability target the sp_int.c default is only otherwise reached incidentally. Pairs with modexp-copy-fast-sakke, which flips sp_int.c to the pointer-copy opt-in.",
"comment": "WOLFSSL_SP_FAST_MODEXP_COPY opt-in: the faster secret-dependent-pointer copy in _sp_exptmod_mont_ex (sp_int.c) and the SAKKE ladder (sakke.c). That branch is the #else of the oblivious default and is compiled by no other entry, and the macro is forced off on the capability (WC_NO_PTR_INT_CAST) legs in fil-c.yml, so a normal target is the only place it is built.",
112
+
"comment": "WOLFSSL_SP_FAST_MODEXP_COPY opt-in: the faster secret-dependent-pointer copy in _sp_exptmod_mont_ex (sp_int.c). SAKKE is built to check that its F_p* exponentiation (sakke.c), which ignores the opt-in and always uses mp_cond_copy, still passes with it defined. The sp_int.c branch is the #else of the oblivious default and is compiled by no other entry, and the macro is forced off on the capability (WC_NO_PTR_INT_CAST) legs in fil-c.yml, so a normal target is the only place it is built.",
0 commit comments