1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00
Luca Boccassi 504d0acf61 cryptsetup: do not assert when unsealing token without salt
Salt was added in v253. We are not checking whether it was actually found
(non-zero size), so when an old tpm+pin enrollment is opened things go boom.
For good measure, check both the buffer and the size in both places.

Assertion 'saltlen > 0' failed at src/shared/tpm2-util.c:2490, function tpm2_util_pbkdf2_hmac_sha256(). Aborting.
2023-02-15 18:01:28 +00:00
..
2022-11-08 18:21:10 +01:00
2022-11-08 13:41:14 +01:00
2022-12-21 01:50:33 +09:00
2022-11-30 09:40:56 +09:00
2022-11-08 13:41:14 +01:00
2022-11-08 13:41:14 +01:00
2022-12-21 01:50:33 +09:00
2023-02-02 03:59:21 +09:00
2022-11-08 18:21:10 +01:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2023-01-27 20:52:12 +00:00
2022-11-08 18:21:10 +01:00
2022-11-08 18:21:10 +01:00
2023-02-15 18:01:02 +00:00