Skip to content

v2026.11.11

Choose a tag to compare

@github-actions github-actions released this 11 Nov 05:25
· 61 commits to main since this release
v2026.11.11
e1526a6
  • Error messages no longer carry bytes of a value refused as a
    signature, which may be a private key passed in the wrong place

    (closes #495, closes #503, closes #511). In v2026.11.8 the
    EccValueError message printed bytes of it:

    • dsa.Sig.parse printed the DER tags it found, the length octets,
      the size a long length announced and the length of the r,s data,
      and dsa.Sig.assert_valid, which parse reaches, printed the whole
      r or s it refused;
    • ssa.Sig.assert_valid, which ssa.Sig.parse reaches, printed the
      whole r or s it refused;
    • borromean.BorromeanSig.assert_valid, which BorromeanSig.parse
      reaches, printed the whole s it refused.

    Each message now says what is wrong without printing the value:
    scalar s not in 0..n-1: 'FFFFFFFF …' becomes scalar s not in 0..n-1. Each keeps the text before its colon, except
    non-canonical DER length: 5 encoded in 3 bytes, which becomes
    non-canonical DER length of 3 bytes. The exception is still
    EccValueError.

    Act on it if your code matches these messages: match the text before
    the colon, since the text after it changed. For
    non-canonical DER length, match that text itself, which both the old
    and the new form start with.

    Act on it if you log these errors: in a log written with any release
    up to v2026.11.8, a refusal of the functions listed above may be
    followed by bytes of the refused value, in hex or in decimal. Treat
    each such line as possibly holding key material, and find them by the
    text of each message before its colon.

CHANGELOG.md's own v2026.11.11 section has the rest.