From: Jonathan McDowell Date: Mon, 25 Sep 2023 20:22:19 +0000 (+0100) Subject: Ensure EDDSA signatures including leading zeros X-Git-Tag: onak-0.6.3~1 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=549f5e6b9048759dd5bcbdf5f376e0766692418c;hp=549f5e6b9048759dd5bcbdf5f376e0766692418c;p=onak.git Ensure EDDSA signatures including leading zeros mpz_export() expands an mpz to only the correct number of bytes required. EDDSA signatures are based on a full 64 bytes of signature data. But if either element of the signature (r or s) is fewer than 249 bits we'll end up with fewer than 32 bytes output and the signature won't valid. Ensure our output is right justified so we don't lose the leftmost zeros. ---