Gilles Peskine e66ca3bbf3 psa_export_key: zero out potential garbage in the output buffer
In psa_export_key, ensure that each byte of the output buffer either
contains its original value, is zero, or is part of the actual output.
Specifically, don't risk having partial output on error, and don't
leave extra data at the end of the buffer when exporting an asymmetric
key.

Test that exporting to a previously zeroed buffer leaves the buffer
zeroed outside the actual output if any.
2018-09-12 16:22:51 +03:00
..
2018-08-06 11:42:56 +01:00
2018-08-06 11:42:56 +01:00
2018-08-06 11:42:56 +01:00
2015-04-08 13:25:31 +02:00
2015-04-08 13:25:31 +02:00
2015-04-08 13:25:31 +02:00
2015-04-08 13:25:31 +02:00
2015-04-08 13:25:31 +02:00
2015-04-08 13:25:31 +02:00
2015-04-08 13:25:31 +02:00
2015-09-07 12:43:11 +02:00
2015-04-08 13:25:31 +02:00
2018-06-11 13:10:14 +01:00
2018-08-21 16:11:13 +03:00
2015-04-08 13:25:31 +02:00
2018-03-27 14:39:26 +01:00
2015-04-08 13:25:31 +02:00