Files
Mariusz Zaborski 5e1ad8bebd geli: split the initalization of HMAC
GELI allows to read a user key from a standard input.
However if user initialize multiple providers at once, the standard
input will be empty for the second and next providers.
This caused GELI to encrypt a master key with an empty key file.

This commits initialize the HMAC with the key file, and then reuse the
finalized structure to generate different encryption keys for different
providers.

Reported by:	Nathan Dorfman
Tested by:	philip
Approved by:	so
Security:	FreeBSD-SA-23:01.geli
Security:	CVE-2023-0751

(cherry picked from commit 5fff09660e)
(cherry picked from commit a5afaf4e9a)
2023-02-08 10:09:41 -08:00
..
2021-12-01 19:08:38 -05:00
2020-11-05 12:10:24 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2020-01-07 19:49:10 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2020-05-17 01:55:07 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2020-01-07 19:49:10 +00:00
2019-12-19 04:58:11 +00:00
2019-06-26 16:38:46 +00:00
2019-12-19 04:58:11 +00:00
2020-09-12 16:33:05 +00:00
2019-12-19 04:58:11 +00:00
2020-11-07 18:10:59 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2021-08-24 10:59:53 -07:00
2019-12-19 04:58:11 +00:00
2020-01-07 19:49:10 +00:00
2019-12-19 04:58:11 +00:00
2020-10-21 16:04:57 +00:00
2020-07-09 09:33:32 +00:00
2020-01-14 02:41:52 +00:00
2019-12-19 04:58:11 +00:00
2020-07-01 16:18:35 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2020-12-15 19:59:29 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2021-07-06 19:58:08 +02:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2020-01-04 00:41:22 +00:00
2021-07-19 08:19:27 +02:00
2020-11-29 14:20:42 +00:00
2021-01-23 21:51:16 -06:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2020-06-08 13:27:45 +00:00
2019-12-19 04:58:11 +00:00
2020-08-29 16:23:00 +00:00
2018-09-20 09:31:27 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2020-07-09 19:11:57 +00:00
2020-05-28 17:08:39 +00:00
2019-12-19 04:58:11 +00:00
2020-05-24 16:47:27 +00:00
2020-06-08 09:32:57 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
…
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00
2019-12-19 04:58:11 +00:00