Repository navigation
v2026.11.7
-
Variable-time integer parameters are typed
ecc.alias.Public
(closes #420, closes #419).PublicisNewType("Public", int), and
mypy refuses a plainintwhere it is asked for. The run time
converts what it converted before. They are:- in
number_theory,aandbofxgcd_var, andaof
mod_inv_var,legendre_symbol_var,mod_sqrt_varand
tonelli_var, which took anint, andaofmod_inv_batch_var,
which took aSequence[int]and takes aSequence[Public]; xofCurveGroup.y_var,y_even_var,y_low_varand
y_quadratic_residue_var, and ofcurves.curve.is_x_coordinate_var,
which took anint;- in
curves.curve,uandvofdouble_mult_var,tof
tweak_add_varandTweakChain.point, andscalarsof
multi_mult_var, aSequence[Public]where it was a
Sequence[Integer]; tofcurves.sec_point.PubKeyTweakChain.tweak_add_varand of
ssa.pub_key_tweak_add_var, which took anInteger.
Act on it if you type-check code that calls them: wrap each such
argument asPublic(x), which also says the value is public. mypy
refuses octets or a string where anIntegerbecamePublic: convert
them to anintfirst. - in
-
dsa.anti_exfil_host_verifyanswersFalsefor a signature whose s
is above n // 2 (closes #465). Plaindsa.verify_still accepts both
forms.Act on it if your device signs with
anti_exfil_sign(..., lower_s=False), or the host relied on a high s passing: sign with a low
s.dsa.anti_exfil_host_verifyraises for a structurally invalid key
or message hash, andssa.anti_exfil_host_verifyfor a structurally
invalid key or signature, as theirverify_do; their docstrings
promisedFalse(closes #466).
CHANGELOG.md's own v2026.11.7 section has the rest.