]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix an assertion failure when loading Ed25519 keys.
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 12 Oct 2015 22:43:49 +0000 (23:43 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Wed, 28 Oct 2015 22:08:33 +0000 (22:08 +0000)
commit0629f1dfa53fe63bce41eaefd9358ea8c7227eeb
treeb068e4867911c28470e040401dffc43696556c12
parentb94a076955cba4de8e9ad495a35abfd5506733b6
Fix an assertion failure when loading Ed25519 keys.

"amax == 0 || a[amax] != 0"

Essentially, when decodepoint_ed() clears the top bit of the key, it
needs to call bn_restore_invariant() in case that left the high-order
word zero.

Bug found with the help of afl-fuzz.
sshecc.c