Gilles Peskine
89816bc020
Fix mutex leak in CTR_DRBG
...
mbedtls_ctr_drbg_free() left a mutex in the initialized state. This
caused a resource leak on platforms where mbedtls_mutex_init()
allocates resources.
To fix this, mbedtls_ctr_drbg_free() no longer reinitializes the
mutex. To preserve the property that mbedtls_ctr_drbg_free() leaves
the object in an initialized state, which is generally true throughout
the library except regarding mutex objects on some platforms, no
longer initialize the mutex in mbedtls_ctr_drbg_init(). Since the
mutex is only used after seeding, and seeding is only permitted once,
call mbedtls_mutex_init() as part of the seeding process.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-02-22 19:40:41 +01:00
..
2020-11-09 20:44:12 +01:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2021-02-01 17:27:06 +01:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-11-06 15:26:52 +01:00
2020-08-19 16:37:36 +02:00
2020-11-28 12:14:57 -03:00
2020-12-09 01:21:50 +00:00
2021-02-22 19:40:41 +01:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-25 10:58:15 +02:00
2020-08-19 16:37:36 +02:00
2021-01-26 18:04:10 +01:00
2021-01-25 10:36:37 +01:00
2020-12-07 13:06:42 +01:00
2020-08-19 16:37:36 +02:00
2020-10-01 17:17:37 +02:00
2020-08-19 16:37:36 +02:00
2020-11-16 13:07:51 +01:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-12-03 13:30:36 -08:00
2019-02-18 14:50:57 +00:00
2020-09-09 15:17:11 +02:00
2020-09-09 15:18:05 +02:00
2020-09-09 15:18:05 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-12-07 16:47:02 +00:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-09-09 15:17:11 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-09-22 16:22:27 +02:00
2021-02-02 12:52:18 +01:00
2020-11-13 09:17:16 +00:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-09-09 15:18:05 +02:00
2020-08-19 16:37:36 +02:00
2021-01-06 20:55:34 +01:00
2020-09-09 15:18:05 +02:00
2020-09-09 15:18:05 +02:00
2020-09-09 15:18:05 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-11-18 13:54:38 +01:00
2020-08-19 16:37:36 +02:00
2020-11-28 14:59:56 -03:00
2021-02-22 19:40:41 +01:00
2020-08-19 16:37:36 +02:00
2021-02-17 12:50:52 +00:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-25 10:58:15 +02:00
2020-12-08 21:00:17 +00:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00