Gilles Peskine a26ff6a290 psa_asymmetric_sign: consistently fill unused output with '!'
Fill the unused part of the output buffer with '!', for consistency
with hash and mac.

On error, set the output length to the output buffer size and fill the
output buffer with '!', again for consistency with hash and mac. This
way an invalid output is more visible in a memory dump.

Restructure the error paths so that there is a single place where the
unused part of the output buffer is filled.

Also remove a redundant initialization of *signature_length to 0.
2018-09-12 16:41:11 +03:00
..
2018-08-13 13:49:52 +03:00
2018-05-25 14:54:14 +01:00
2017-07-27 21:44:33 +01:00
2018-06-18 10:30:30 +02:00
2018-09-05 10:59:00 +03:00
2017-09-06 17:51:14 +03:00
2017-10-10 19:04:27 +03:00
2018-05-15 09:21:57 +01:00
2018-08-20 10:39:27 +03:00
2018-08-17 16:52:08 +01:00
2018-09-05 10:59:00 +03:00
2018-07-24 16:43:20 +01:00
2015-09-04 14:21:07 +02:00
2018-09-05 11:53:24 +03:00
2018-05-25 14:54:14 +01:00
2015-09-04 14:21:07 +02:00
2018-09-05 11:53:24 +03:00
2017-10-29 17:53:52 +02:00
2018-04-11 20:27:32 -04:00
2018-09-05 10:59:00 +03:00