Fix off-by-one error in ecdsa_write_signature()

Made some signature fail with 521-bit curve
1 file changed