Files
heimdal/lib/hcrypto
Luke Howard 4891d713fb bn_s_mp_rand_platform.c: s_read_urandom: correctly handle split read
s_read_urandom has a while loop to handle read() that returns less
than the full buffer (either due to EINTR or because more than the
atomic guarantee from urandom was requested). However, the target
of the read was always the base pointer p instead of the updated
pointer q, so in the end less than the requested randomness is returned.

Use q instead of p in the read() call.

Upstream pull request:
https://github.com/libtom/libtommath/pull/512

Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2022-01-15 13:38:18 +11:00
..
2016-04-10 17:05:07 -05:00
2022-01-14 12:48:32 -06:00
2016-04-15 00:16:17 -05:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2008-09-13 08:53:55 +00:00
2016-04-10 17:05:07 -05:00
2008-09-13 09:21:03 +00:00
2016-04-10 17:05:07 -05:00
2011-05-21 11:57:31 -07:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2019-07-09 12:34:26 -05:00
2016-04-15 00:16:17 -05:00
2008-09-13 09:21:03 +00:00
2016-04-10 17:05:07 -05:00
2016-04-15 00:16:17 -05:00
2021-11-29 12:50:26 +11:00
2021-11-29 12:50:26 +11:00
2021-11-29 12:50:26 +11:00
2021-11-29 12:50:26 +11:00
2016-06-09 01:13:14 -04:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2010-09-30 18:22:00 -07:00
2016-12-17 23:04:41 -05:00
2015-12-09 11:08:35 +11:00
2007-04-20 08:29:05 +00:00
2022-01-14 12:48:32 -06:00
2020-04-25 23:19:30 -05:00
2022-01-14 20:10:19 -06:00
2017-04-29 01:05:59 -04:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2020-04-25 23:19:30 -05:00
2007-04-20 08:29:05 +00:00
2007-04-20 08:29:05 +00:00
2007-04-20 08:29:05 +00:00
2007-04-20 08:29:05 +00:00
2016-04-10 17:05:07 -05:00
2008-09-13 09:21:03 +00:00
2016-04-10 17:05:07 -05:00
2008-09-13 09:21:03 +00:00
2018-12-14 17:30:14 -05:00
2016-11-10 22:29:49 -05:00
2020-02-01 12:32:09 +11:00
2017-04-17 18:02:30 -04:00
2015-10-06 15:44:47 +02:00
2016-04-10 17:05:07 -05:00
2008-09-13 09:21:03 +00:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2008-09-13 09:21:03 +00:00
2007-04-20 08:29:05 +00:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2022-01-14 12:48:32 -06:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2016-04-15 00:16:17 -05:00
2010-10-03 17:04:48 -07:00
2010-10-03 18:13:58 -07:00
2007-04-20 08:29:05 +00:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2016-04-10 17:05:07 -05:00
2016-11-09 15:36:04 +00:00
2014-04-25 02:42:17 +02:00
2019-01-02 13:56:04 -05:00
2022-01-14 12:48:32 -06:00
2016-04-10 17:05:07 -05:00
2020-04-27 13:14:21 -05:00
2018-12-30 15:39:49 -06:00
2018-12-30 15:39:49 -06:00
2022-01-14 12:48:32 -06:00
2020-04-25 23:19:30 -05:00
2020-04-25 23:19:30 -05:00